<div dir="ltr">Thank you Tim.<span class="gmail-" id="gmail-result_box" tabindex="-1" lang="en"><br><span>I measure memory growth with htop, so I use the sleep function to give me time to see what happened to memory.</span></span><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-23 4:17 GMT-04:00 Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 2017-09-22 at 20:22 -0400, Yuniesky Vasconcelo wrote:<br>
<br>
Hi,<br>
<br>
Your code looks fine at first glance. Setting pipeline to NULL state<br>
and unrefing it should be all that's needed. You don't use the bus, so<br>
you're not leaking bus messages either.<br>
<br>
How do you measure "memory grows every time"?<br>
<br>
You can use<br>
<br>
G_SLICE=always-malloc valgrind --leak-check=yes --show-reachable=no<br>
gst-launch-1.0 ...<br>
<br>
(might want to use some .supp suppression files which you can find in<br>
the gstreamer git repos).<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"> -Tim<br>
<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
<br>
Join us at the GStreamer Conference!<br>
21-22 October 2017 in Prague, Czech Republic<br>
<a href="http://gstreamer.freedesktop.org/conference/" rel="noreferrer" target="_blank">http://gstreamer.freedesktop.<wbr>org/conference/</a><br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</font></span></blockquote></div><br></div>