<pre>>><i> I'm fronting a problem of memory leak (that i detect with valgrind
</i>>><i> test tool) on my app and after some time i discover that
</i>>><i> if i just init the gstreamer lib (with gst_init()) and after finalize
</i>>><i> it (sith gst_deinit()) the memory leak is the same. After
</i>>><i> test my app without gst_* calls, no memory leak is detected. So, after
</i>>><i> search on web, i found some people with the same
</i>>><i> problem and no solutions shown, how i see on topic below of
</i>>><i> gstreamer-devel (and some others)
</i>>><i>
</i>>><i> <a href="http://gstreamer-devel.966125.n4.nabble.com/quot-Possibly-lost-quot-memory-shown-by-valgrind-during-gst-init-check-td972463.html">http://gstreamer-devel.966125.n4.nabble.com/quot-Possibly-lost-quot-memory-shown-by-valgrind-during-gst-init-check-td972463.html</a>
</i>>><i>
</i>>><i> I must say that i set the env vars
</i>>><i>
</i>>><i> G_SLICE=always-malloc
</i>>><i> G_DEBUG=gc-friendly
</i>>><i>
</i>>><i> So, i'd like to know if it is really a know-bug or it's a wrong lib
</i>>><i> use of my part. If it's a using problem, someone has
</i>>><i> tips for solution?
</i>>><i>
</i>>><i> I really be grateful for some help/tips.</i><br><br>> My reply from back then is still true. gst_init() does a number of
> one-time allocations which gst_deinit() doesn't/can't clean up, esp.
> inside GObject. You may want to use GStreamer's gst.supp valgrind
> suppression file from the common module to suppress these kind of leaks,
> just like our own unit tests do when they run under valgrind.
> Cheers
> -Tim
</pre>Hi Tim,<br><br>In advance, thanks for the fast answer.<br>I understand your answer but in my tests, the memory leak has a variable size and <br>according to your answer, the memory leak's size should be fixed. I run the same simple <br>
test many times and always a different size is show by valgrind. <br>After see that, I try run my full app with pipelines and everything inside them. The memory leak<br>continue growing and valgrind (already with gst.supp file of the gstreamer git tree) show me<br>
some others leaks, mainly on bus_* calls and plugin_* calls. is it too a normal behavior?<br>My app make many pipelines and finish them with set_state(NULL) and with unref calls.<br><br>Some others tips? Thanks in advance for some help!<br>
<br>-- <br><div>Raul Holanda Cordeiro</div><div>Celular: +55 (85) 8863-6877</div><div>Celular: +55 (85) 8805-3592</div><div>Skype: raulhcordeiro</div><br>