bonobo-item-container fix



This fixes the bonobo_item_container_remove_by_name() function.

Ok to commit?

Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/bonobo/ChangeLog,v
retrieving revision 1.1074
diff -u -r1.1074 ChangeLog
--- ChangeLog	2001/06/22 15:13:54	1.1074
+++ ChangeLog	2001/06/23 01:38:46
@@ -1,3 +1,8 @@
+2001-06-22  Dave Camp  <dave ximian com>
+
+	* bonobo/bonobo-item-container.c
(bonobo_item_container_remove_by_name): 
+	Remove the item from the hash table before freeing the key.
+
 2001-06-22  jacob berkman  <jacob ximian com>
 
 	* bonobo/bonobo-win.c (bonobo_window_init): use the default window
Index: bonobo/bonobo-item-container.c
===================================================================
RCS file: /cvs/gnome/bonobo/bonobo/bonobo-item-container.c,v
retrieving revision 1.53
diff -u -r1.53 bonobo-item-container.c
--- bonobo/bonobo-item-container.c	2001/02/16 00:01:00	1.53
+++ bonobo/bonobo-item-container.c	2001/06/23 01:38:46
@@ -272,9 +272,9 @@
 					   &key, &value))
 		g_warning ("Removing '%s' but not in container", name);
 	else {
+		g_hash_table_remove (container->priv->objects, name);
 		g_free (key);
 		bonobo_object_unref (value);
-		g_hash_table_remove (container->priv->objects, name);
 	}
 }
 






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