summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-21 20:32:15 +0200
committerrbuj <[email protected]>2021-10-21 20:47:57 +0200
commit6327867e052055b3b581c6548ff42f33344a8621 (patch)
treeb03505b2832171d0e4ecbac4776a70114bc24b2a
parent7514f72e4480dc05aaf00858ed8069332ea6b39e (diff)
downloadmate-session-manager-6327867e052055b3b581c6548ff42f33344a8621.tar.bz2
mate-session-manager-6327867e052055b3b581c6548ff42f33344a8621.tar.xz
mate-session-check-accelerated: fix memory leak
-rw-r--r--tools/mate-session-check-accelerated.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mate-session-check-accelerated.c b/tools/mate-session-check-accelerated.c
index 6fe6ec4..364bf67 100644
--- a/tools/mate-session-check-accelerated.c
+++ b/tools/mate-session-check-accelerated.c
@@ -158,8 +158,10 @@ main (int argc, char **argv)
renderer_string = get_gtk_gles_renderer ();
if (renderer_string) {
g_print ("%s", renderer_string);
+ g_free (renderer_string);
return 0;
}
+ g_free (renderer_string);
return 1;
}