GNOME Bugzilla – Bug 788035
autoconvert: chain functions leak memory in error case
Last modified: 2017-09-22 07:50:17 UTC
It looks like there is two memory leaks in autoconvert. In the functions for the gst_auto_convert_sink_chain and gst_auto_convert_sink_chain_list. If an element isn't found and the internal's still have a "autoconvert->current_internal_srcpad == 0" then the buffer and buffer lists will be leaked on these failure cases as the buffer is neither passed or free'ed
Created attachment 360242 [details] [review] Fix memory leaks Fixes memory leaks by adding calls to the correct unref functions during the error conditions
Thanks! commit 9d5d9897e5911e2e2916f0cf83a0f473a2290b7b Author: James Stevenson <james@stev.org> Date: Fri Sep 22 08:10:44 2017 +0100 autoconvert: Fix two memory leaks on error conditions Both the sink_chain and sink_chain_list will neither pass or free the buffer if the internal src pad doesn't exist yet. https://bugzilla.gnome.org/show_bug.cgi?id=788035