[nautilus] tree-sidebar: don't call g_free on a GObject list



commit 03888c1dde59cb2dd3b243e3c72f35757a4c2e5f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Oct 17 11:15:24 2011 -0400

    tree-sidebar: don't call g_free on a GObject list
    
    https://bugzilla.gnome.org/show_bug.cgi?id=660906
    https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/845408

 src/nautilus-tree-sidebar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-tree-sidebar.c b/src/nautilus-tree-sidebar.c
index a70d6db..4edcd27 100644
--- a/src/nautilus-tree-sidebar.c
+++ b/src/nautilus-tree-sidebar.c
@@ -1028,7 +1028,7 @@ fm_tree_view_trash_cb (GtkWidget *menu_item,
 	nautilus_file_operations_trash_or_delete (list, 
 						  fm_tree_view_get_containing_window (view),
 						  NULL, NULL);
-	g_list_free_full (list, g_free);
+	g_list_free_full (list, g_object_unref);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]