Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libbonobo/ChangeLog,v
retrieving revision 1.390
diff -u -p -u -p -r1.390 ChangeLog
--- ChangeLog	16 Apr 2003 19:10:50 -0000	1.390
+++ ChangeLog	16 Apr 2003 20:09:33 -0000
@@ -17,6 +17,13 @@
 	* samples/echo/Makefile.am (bonobo_echo_2_LDADD, echo_client_2_LDADD):
 	move libEcho.a to the first. because it depends on other libraries.
 
+2003-04-16  Gustavo J. A. M. Carneiro  <gustavo@users.sourceforge.net>
+
+	* bonobo/bonobo-object.c (bonobo_object_finalize_internal): Fix
+	stupid bug: compare object type with BONOBO_TYPE_FOREIGN_OBJECT
+	instead of BONOBO_TYPE_OBJECT when deciding if we should call
+	bonobo_object_corba_deactivate.
+
 2003-04-16  Michael Meeks  <michael@ximian.com>
 
 	* configure.in: add activation debug flags, and the
Index: bonobo/bonobo-object.c
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-object.c,v
retrieving revision 1.147
diff -u -p -u -p -r1.147 bonobo-object.c
--- bonobo/bonobo-object.c	15 Apr 2003 22:36:58 -0000	1.147
+++ bonobo/bonobo-object.c	16 Apr 2003 20:09:36 -0000
@@ -170,7 +170,7 @@ bonobo_object_finalize_internal (BonoboA
 			 */
 
 			BONOBO_OBJECT (o)->priv->ao = NULL;
-			if (!g_type_is_a (G_OBJECT_TYPE(o), BONOBO_TYPE_OBJECT))
+			if (!g_type_is_a (G_OBJECT_TYPE(o), BONOBO_TYPE_FOREIGN_OBJECT))
 				bonobo_object_corba_deactivate (BONOBO_OBJECT (o));
 
 			g_object_unref (o);
