nautilus r13967 - in branches/multiview: . src



Author: cneumair
Date: Sat Mar 22 15:25:12 2008
New Revision: 13967
URL: http://svn.gnome.org/viewvc/nautilus?rev=13967&view=rev

Log:
2007-03-22  Christian Neumair  <cneumair gnome org>

	* src/nautilus-window.c: (nautilus_window_close): Copy slot list
	before freeing slots, since it will change the list.


Modified:
   branches/multiview/ChangeLog
   branches/multiview/src/nautilus-window.c

Modified: branches/multiview/src/nautilus-window.c
==============================================================================
--- branches/multiview/src/nautilus-window.c	(original)
+++ branches/multiview/src/nautilus-window.c	Sat Mar 22 15:25:12 2008
@@ -729,16 +729,18 @@
 nautilus_window_close (NautilusWindow *window)
 {
 	NautilusWindowSlot *slot;
-	GList *l;
+	GList *l, *slots;
 
 	g_return_if_fail (NAUTILUS_IS_WINDOW (window));
 
 	nautilus_window_set_active_slot (window, NULL);
 
-	for (l = window->details->slots; l != NULL; l = l->next) {
+	slots = g_list_copy (window->details->slots);
+	for (l = slots; l != NULL; l = l->next) {
 		slot = NAUTILUS_WINDOW_SLOT (l->data);
 		nautilus_window_close_slot (window, slot);
 	}
+	g_list_free (slots);
 
 	EEL_CALL_METHOD (NAUTILUS_WINDOW_CLASS, window,
 			 close, (window));



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