tiny leak



patch says it all

ciao
	Paolo
Index: src/nautilus-navigation-window.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-navigation-window.c,v
retrieving revision 1.451
diff -u -p -u -p -r1.451 nautilus-navigation-window.c
--- src/nautilus-navigation-window.c	8 Dec 2006 09:49:38 -0000	1.451
+++ src/nautilus-navigation-window.c	14 Dec 2006 22:01:50 -0000
@@ -1182,7 +1182,6 @@ add_sidebar_panels (NautilusNavigationWi
 	GList *providers;
 	GList *p;
 	NautilusSidebar *sidebar_panel;
-	NautilusSidebarProvider *provider;
 
 	g_assert (NAUTILUS_IS_NAVIGATION_WINDOW (window));
 
@@ -1193,6 +1192,8 @@ add_sidebar_panels (NautilusNavigationWi
  	providers = nautilus_module_get_extensions_for_type (NAUTILUS_TYPE_SIDEBAR_PROVIDER);
 	
 	for (p = providers; p != NULL; p = p->next) {
+		NautilusSidebarProvider *provider;
+
 		provider = NAUTILUS_SIDEBAR_PROVIDER (p->data);
 		
 		sidebar_panel = nautilus_sidebar_provider_create (provider,
@@ -1202,7 +1203,9 @@ add_sidebar_panels (NautilusNavigationWi
 		
 		g_object_unref (sidebar_panel);
 	}
-	
+
+	nautilus_module_extension_list_free (providers);
+
 	current = nautilus_side_pane_get_current_panel (window->sidebar);
 	set_current_side_panel
 		(window, 


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