GNOME Bugzilla – Bug 480707
Memory leak : gstrtpmp4vpay : config buffer is leaked
Last modified: 2007-09-27 11:11:22 UTC
The config buffer is leaked... /* if config string changed or new profile, make new caps */ if (!equal || newprofile) { if (enc->config) gst_buffer_unref (enc->config); enc->config = gst_buffer_new_and_alloc (i); memcpy (GST_BUFFER_DATA (enc->config), data, i); gst_rtp_mp4v_pay_new_caps (enc); } Here the config is created and unreffed in any was present but it is never unreffed by itself ...
Created attachment 96240 [details] [review] Patch to fix memlead
Patch by: Antoine Tremblay <hexa00 at gmail dot com> * gst/rtp/gstrtpmp4vpay.c: (gst_rtp_mp4v_pay_init), (gst_rtp_mp4v_pay_finalize), (gst_rtp_mp4v_pay_flush), (gst_rtp_mp4v_pay_handle_buffer): * gst/rtp/gstrtpmp4vpay.h: Free the config string. Fixes #480707. Clean up the timestamp code a little.