[nautilus-actions] nact_menubar_maintainer_on_dump_selection: incrementing ref_count on dump is useless



commit c0e2aade04a1041d0a004b3e2ac07bf5ba758b6f
Author: Pierre Wieser <pwieser trychlos org>
Date:   Tue Feb 14 06:53:33 2012 +0100

    nact_menubar_maintainer_on_dump_selection: incrementing ref_count on dump is useless

 ChangeLog                          |    4 ++++
 src/nact/nact-menubar-maintainer.c |    6 +-----
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 12d487d..1326888 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2012-02-14 Pierre Wieser <pwieser trychlos org>
 
+	* src/nact/nact-menubar-maintainer.c
+	(nact_menubar_maintainer_on_dump_selection): Incrementing the objects
+	ref_count on dump is useless.
+
 	* src/nact/nact-menubar-edit.c (nact_menubar_edit_on_copy): Incrementing
 	the objects ref before copying is useless.
 
diff --git a/src/nact/nact-menubar-maintainer.c b/src/nact/nact-menubar-maintainer.c
index 43e6c20..566e639 100644
--- a/src/nact/nact-menubar-maintainer.c
+++ b/src/nact/nact-menubar-maintainer.c
@@ -60,13 +60,9 @@ nact_menubar_maintainer_on_update_sensitivities( const NactMenubar *bar )
 void
 nact_menubar_maintainer_on_dump_selection( GtkAction *action, BaseWindow *window )
 {
-	GList *items;
-
 	BAR_WINDOW_VOID( window );
 
-	items = na_object_copyref_items( bar->private->selected_items );
-	na_object_dump_tree( items );
-	na_object_free_items( items );
+	na_object_dump_tree( bar->private->selected_items );
 }
 
 /**



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