[gst-devel] explicit g_object_dispose on anything?

in7y118 at public.uni-hamburg.de in7y118 at public.uni-hamburg.de
Thu Feb 5 09:51:32 CET 2004


Quoting Andy Wingo <wingo at pobox.com>:

> Hey folks,
> 
> I was going through gstpad.c and gstelement.c doing some cleanups, and I
> saw some assertions in the real pad dispose code. The assertion (that a
> pad being disposed has no peer) would hold for a dispose run by a final
> unref, but not for an explicit call to g_object_dispose (pad).
> 
> My question is, is it legal to call g_object_dispose on anything you
> please? http://www.gnome.org/~mathieu/gobject/ch04s02.html seems to
> suggest that that is a possibility.
> 
Maybe we need to do s/dispose/finalize/ everywhere?
I'm not even sure what the difference between dispose and finalize is.
Anyone knows?

Benjamin




More information about the gstreamer-devel mailing list