GNOME Bugzilla – Bug 642381
potential memleak in decodebin2
Last modified: 2011-02-15 16:07:54 UTC
The "elements" member of a decode chain contains referenced GstElement* pointers (gstdecodebin2.c:1729). However, if the end of a chain could not be brought to PAUSED, it does not seem that the references are removed (gstdecodebin2.c:1764). Though, this code is very tricky and I don't entirely trust my analysis. But if what I see is right, we could end up with a reference leak in some error conditions in decodebin2.
commit fbf972979561676507d6083ef16c986df1394cd7 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Tue Feb 15 17:01:13 2011 +0100 decodebin2: Don't leak elements that fail to go to PAUSED after being autoplugged Fixes bug #642381.