GNOME Bugzilla – Bug 337548
Memory leaks in basertpdepayload
Last modified: 2006-04-11 17:40:53 UTC
This patch will unref buffers that could still be in queue and also unref the input buffer in gst_base_rtp_depayload_push even if there's no out_buf returned since some plugins like h263depay will copy and add the buffer to an adapter and returnnull as output buffer (in the process function) thus leaking the input buffer... this can be a major leak
Created attachment 62879 [details] [review] Patch to fix the memleaks
thanks, committed with minor modifications: 2006-04-11 Tim-Philipp Müller <tim at centricular dot net> Patch by: Antoine Tremblay <hexa00 at gmail dot com> * gst-libs/gst/rtp/gstbasertpdepayload.c: (gst_base_rtp_depayload_finalize), (gst_base_rtp_depayload_push): Fix some memory leaks: on finalize, free buffers left in the queue before destroying the queue; in _push(), unref rtp_buf even if the process vfunc returned a NULL buffer as output buffer (#337548); demote some recuring debug messages to LOG level.