[gstreamer-bugs] [Bug 543961] Memory leak in gst.Bin.do_handle_message
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Mon Jul 21 05:00:58 PDT 2008
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=543961
GStreamer | gst-python | Ver: HEAD CVS
Edward Hervey changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bilboed at bilboed.com
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
------- Comment #2 from Edward Hervey 2008-07-21 12:00 UTC -------
ok, so this is all related to methods 'stealing' references.
with gst.Bin.handle_message you might be using it in two different ways.
* Either you create a *new* message from python within that method, in which
case you will indeed need the C wrapper (GstBin__do_handle_message in
gstbin.override) to increment the refcount of the miniobject before calling the
parent function in order for the Python miniobject wrapper to still have its
reference against the C miniobject...
*.. or you will be just re-using the message given to you, which has already
gone under the assumption that the reference will be stolen.
The override only assumes the first case (in which case in adds a reference).
If you use the code as in the second case... there will be a reference too much
=> it leaks.
Will need to think a bit more on how to solve this issue.
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=543961.
More information about the Gstreamer-bugs
mailing list