diff options
author | rbuj <[email protected]> | 2021-10-22 12:59:47 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-10 14:26:23 +0200 |
commit | 547c64b8d616e3e55ca54eebaa2e74c43c237b56 (patch) | |
tree | 5642255dbe590cf30ee6730f10931290766ca24a /src | |
parent | c9a070aa89dc760c2e08e8af85bf7e4f3a81ad84 (diff) | |
download | mate-power-manager-547c64b8d616e3e55ca54eebaa2e74c43c237b56.tar.bz2 mate-power-manager-547c64b8d616e3e55ca54eebaa2e74c43c237b56.tar.xz |
gpm-prefs: fix memory leak
In addition, it adds enumerations to access indexed arrays.
Diffstat (limited to 'src')
-rw-r--r-- | src/gpm-prefs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gpm-prefs.c b/src/gpm-prefs.c index 8a1e26e..91a2950 100644 --- a/src/gpm-prefs.c +++ b/src/gpm-prefs.c @@ -84,6 +84,7 @@ main (int argc, char **argv) g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE); g_option_context_add_group (context, gtk_get_option_group (FALSE)); g_option_context_parse (context, &argc, &argv, NULL); + g_option_context_free (context); gdk_init (&argc, &argv); app = gtk_application_new("org.mate.PowerManager.Preferences", 0); @@ -103,8 +104,5 @@ main (int argc, char **argv) g_object_unref (app); -/* seems to not work... - g_option_context_free (context); */ - return status; } |