diff options
-rw-r--r-- | tools/mate-session-check-accelerated-gl-helper.c | 1 | ||||
-rw-r--r-- | tools/mate-session-check-accelerated-gles-helper.c | 2 | ||||
-rw-r--r-- | tools/mate-session-check-accelerated.c | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/tools/mate-session-check-accelerated-gl-helper.c b/tools/mate-session-check-accelerated-gl-helper.c index 9c1cc0b..5c1e8d9 100644 --- a/tools/mate-session-check-accelerated-gl-helper.c +++ b/tools/mate-session-check-accelerated-gl-helper.c @@ -510,6 +510,7 @@ main (int argc, char **argv) out: if (display) XCloseDisplay (display); + g_option_context_free (context); g_free (renderer); return ret; diff --git a/tools/mate-session-check-accelerated-gles-helper.c b/tools/mate-session-check-accelerated-gles-helper.c index e6312c6..d5ad808 100644 --- a/tools/mate-session-check-accelerated-gles-helper.c +++ b/tools/mate-session-check-accelerated-gles-helper.c @@ -226,8 +226,10 @@ main (int argc, else ret = HELPER_ACCEL; } + g_free (renderer); #endif out: + g_option_context_free (context); return ret; } diff --git a/tools/mate-session-check-accelerated.c b/tools/mate-session-check-accelerated.c index 6fe6ec4..70095f5 100644 --- a/tools/mate-session-check-accelerated.c +++ b/tools/mate-session-check-accelerated.c @@ -158,6 +158,7 @@ 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; } return 1; |