GNOME Bugzilla – Bug 333345
[lame] fix some memory leaks
Last modified: 2006-03-15 13:44:12 UTC
Please describe the problem: In simple uses (create a pipeline, iterate until EOS, set state to None, iterate again, set state to None, unref the pipeline), lame leaks some memory. The attached patch fixes those leaks. I'm not familiar with gstreamer 0.10, so it needs to be looked at carefully in case I'm doing something stupid ;) But valgrind seems happy with it. The bad news is that libmp3lame seems to be leaking in some conditions as well :( Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 60628 [details] [review] Fix leaks
Thanks, committed: 2006-03-15 Tim-Philipp Müller <tim at centricular dot net> Patch by: Christophe Fergeau <teuf gnome org> * ext/lame/gstlame.c: (gst_lame_release_memory), (gst_lame_finalize), (gst_lame_class_init), (gst_lame_sink_setcaps), (gst_lame_init), (gst_lame_sink_event), (gst_lame_change_state): Fix some memory leaks (#333345), use GST_DEBUG_FUNCPTR more often. with the following minor modifications: - moved the gst_object_unref() added in sink_setcaps() after the GST_ELEMENT_ERROR macro, as the object is still used as first arg - used gst_pad_new_from_static_template()