[Discussion] Did you ever forget to un_ref any GObject?

hxpax thehxpax at gmail.com
Tue Jan 6 18:10:33 PST 2015


That could be a big problem on some other platforms, more than just a
segfault.

I wonder are there any conventions for unref?


Luis de Bethencourt wrote
> The contrary happens to me. I tend to forget some of the situations where
> you don't need to unref, I unref and then it segfaults. I think I do this
> mostly due to the positive reinforcement of segfaults being a lot easier
> to
> fix than memory leaks.
> 
> Over time you stop checking the documentation and start internalizing it.
> 
> Luis
> ________
> gstreamer-devel mailing list

> gstreamer-devel at .freedesktop

> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Discussion-Did-you-ever-forget-to-un-ref-any-GObject-tp4670103p4670128.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list