<div dir="ltr">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.<div><br></div><div>Over time you stop checking the documentation and start internalizing it.</div><div><br></div><div>Luis</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 January 2015 at 13:47, hxpax <span dir="ltr"><<a href="mailto:thehxpax@gmail.com" target="_blank">thehxpax@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, all.<br>
<br>
I find it's always hard for me to decide if un_ref is needed for a GObject<br>
instance.<br>
Every time I meet a new GObject or a new method, I had to check the<br>
documentation.<br>
<br>
So, did you ever been hesitant on a un_ref problem? Or maybe this was never<br>
a problem to you?<br>
<br>
Fell free to criticize my naive.<br>
<br>
Any advice will be highly appreciate.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Discussion-Did-you-ever-forget-to-un-ref-any-GObject-tp4670103.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Discussion-Did-you-ever-forget-to-un-ref-any-GObject-tp4670103.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>