Skip to content

Commit

Permalink
Fix memory leaks (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj authored and raveit65 committed May 5, 2023
1 parent fe5afa9 commit 7b09df2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/mate-session-check-accelerated-gl-helper.c
Expand Up @@ -510,6 +510,7 @@ main (int argc, char **argv)
out:
if (display)
XCloseDisplay (display);
g_option_context_free (context);
g_free (renderer);

return ret;
Expand Down
2 changes: 2 additions & 0 deletions tools/mate-session-check-accelerated-gles-helper.c
Expand Up @@ -226,8 +226,10 @@ main (int argc,
else
ret = HELPER_ACCEL;
}
g_free (renderer);
#endif

out:
g_option_context_free (context);
return ret;
}
1 change: 1 addition & 0 deletions tools/mate-session-check-accelerated.c
Expand Up @@ -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;
Expand Down

0 comments on commit 7b09df2

Please sign in to comment.