Index: gedit/gedit-spinner.c
===================================================================
RCS file: /cvs/gnome/gedit/gedit/gedit-spinner.c,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 gedit-spinner.c
--- gedit/gedit-spinner.c	3 Mar 2006 21:45:30 -0000	1.3
+++ gedit/gedit-spinner.c	29 Sep 2006 09:07:53 -0000
@@ -137,9 +137,16 @@ gedit_spinner_images_free (GeditSpinnerI
 {
 	if (images != NULL)
 	{
-		g_list_foreach (images->images, (GFunc) g_object_unref, NULL);
-		g_object_unref (images->quiescent_pixbuf);
+		GList *l;
 
+		for (l = images->images; l != NULL; l = l->next)
+			if (l->data)
+				g_object_unref (l->data);
+
+		if (images->quiescent_pixbuf != NULL)
+			g_object_unref (images->quiescent_pixbuf);
+
+		g_list_free (images->images);
 		g_free (images);
 	}
 }
