diff options
author | monsta <[email protected]> | 2016-02-08 10:34:53 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-02-15 17:01:43 +0300 |
commit | ef80bf2011986bd4570c0975872c3896e17c4f30 (patch) | |
tree | 47324e7d9795dbec45daef7dd08840da9263e3e5 | |
parent | bb93541be09be63a002ceb0fd741faa4cc6846ec (diff) | |
download | caja-ef80bf2011986bd4570c0975872c3896e17c4f30.tar.bz2 caja-ef80bf2011986bd4570c0975872c3896e17c4f30.tar.xz |
eel: fix some forgotten memory leaks
taken from:
https://git.gnome.org/browse/nautilus/commit/?id=8f15b28dd7afdd1a5c5b9c0d54c05d978a10461a
https://git.gnome.org/browse/nautilus/commit/?id=60217c642cb4b12297b2d8ddd2a2eae45671a5a7
https://git.gnome.org/browse/nautilus/commit/?id=5f5bea72af6e23986b7367a2a2157fb15481f367
-rw-r--r-- | eel/eel-glib-extensions.c | 10 | ||||
-rw-r--r-- | eel/eel-gtk-extensions.c | 1 | ||||
-rw-r--r-- | eel/eel-mate-extensions.c | 1 |
3 files changed, 12 insertions, 0 deletions
diff --git a/eel/eel-glib-extensions.c b/eel/eel-glib-extensions.c index 68ed9e86..0ec5db6c 100644 --- a/eel/eel-glib-extensions.c +++ b/eel/eel-glib-extensions.c @@ -825,6 +825,8 @@ eel_g_settings_add_auto_boolean (GSettings *settings, g_signal_connect (settings, signal, G_CALLBACK(update_auto_boolean), storage); + + g_free (signal); } static void @@ -849,6 +851,8 @@ eel_g_settings_add_auto_int (GSettings *settings, g_signal_connect (settings, signal, G_CALLBACK(update_auto_int), storage); + + g_free (signal); } static void @@ -873,6 +877,8 @@ eel_g_settings_add_auto_enum (GSettings *settings, g_signal_connect (settings, signal, G_CALLBACK(update_auto_enum), storage); + + g_free (signal); } static void @@ -921,6 +927,8 @@ eel_g_settings_add_auto_strv (GSettings *settings, g_signal_connect (settings, signal, G_CALLBACK(update_auto_strv), storage); + + g_free (signal); } void @@ -936,6 +944,8 @@ eel_g_settings_add_auto_strv_as_quarks (GSettings *settings, g_signal_connect (settings, signal, G_CALLBACK(update_auto_strv_as_quarks), storage); + + g_free (signal); } #if !defined (EEL_OMIT_SELF_CHECK) diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c index b86b2b88..281c361b 100644 --- a/eel/eel-gtk-extensions.c +++ b/eel/eel-gtk-extensions.c @@ -430,6 +430,7 @@ tree_view_button_press_callback (GtkWidget *tree_view, { gtk_tree_view_row_activated (GTK_TREE_VIEW (tree_view), path, column); + gtk_tree_path_free (path); } } diff --git a/eel/eel-mate-extensions.c b/eel/eel-mate-extensions.c index 4d4e9beb..80563034 100644 --- a/eel/eel-mate-extensions.c +++ b/eel/eel-mate-extensions.c @@ -54,6 +54,7 @@ try_terminal_command (const char *program, } quoted = g_shell_quote (program_in_path); + g_free (program_in_path); if (args == NULL || args[0] == '\0') { return quoted; |