[Xfce4-commits] <xfdesktop:master> Fix memory leaks

Eric Koegel noreply at xfce.org
Sun Aug 4 10:36:09 CEST 2013


Updating branch refs/heads/master
         to 594ea3b79117c866b8d2358dc2b44303572e0578 (commit)
       from 95542b215411106f404e21a443ddd1e7059fff1c (commit)

commit 594ea3b79117c866b8d2358dc2b44303572e0578
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Sun Mar 17 13:36:54 2013 +0300

    Fix memory leaks

 settings/main.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/settings/main.c b/settings/main.c
index 71f917f..3f00439 100644
--- a/settings/main.c
+++ b/settings/main.c
@@ -670,6 +670,7 @@ cb_image_selection_changed(GtkIconView *icon_view,
         xfconf_channel_set_string(panel->channel, buf, filename);
     }
 
+    g_list_foreach (selected_items, (GFunc)gtk_tree_path_free, NULL);
     g_list_free(selected_items);
     g_free(current_filename);
     g_free(buf);
@@ -819,10 +820,13 @@ cb_folder_selection_changed(GtkWidget *button,
     TRACE("entering");
 
     /* Check to see if the folder actually did change */
-    if(g_strcmp0(filename, previous_filename) == 0)
+    if(g_strcmp0(filename, previous_filename) == 0) {
+        g_free(filename);
         return;
+    }
 
     TRACE("folder changed to: %s", filename);
+    g_free(previous_filename);
     previous_filename = filename;
 
     xfdesktop_settings_stop_image_loading(panel);


More information about the Xfce4-commits mailing list