refcount checking in add_interface




Elliot checked in the following change a while back. I remember it was
objected to on-list and I don't recall seeing a good justification for
it.

I will revert it tomorrow unless someone objects. (In other words, I
will add back the checks that correspond to the comment, which is
still there).


[mjs@pythagoras bonobo]$ cvs diff -u -r 1.49 -r 1.48 bonobo-object.c
Index: bonobo-object.c
===================================================================
RCS file: /cvs/gnome/bonobo/bonobo/bonobo-object.c,v
retrieving revision 1.49
retrieving revision 1.48
diff -u -r1.49 -r1.48
--- bonobo-object.c	1999/12/13 23:15:22	1.49
+++ bonobo-object.c	1999/12/10 06:35:42	1.48
@@ -474,6 +474,8 @@
 	*
 	*   This check is not perfect, but might help some people.
 	*/
+       g_return_if_fail (object->priv->ao->ref_count == 1);
+       g_return_if_fail (newobj->priv->ao->ref_count == 1);
        
        oldao = newobj->priv->ao;
 



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