After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 642381 - potential memleak in decodebin2
potential memleak in decodebin2
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: 0.10.33
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-02-15 15:03 UTC by Andy Wingo
Modified: 2011-02-15 16:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andy Wingo 2011-02-15 15:03: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.
Comment 1 Sebastian Dröge (slomo) 2011-02-15 16:07:54 UTC
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.