[Bug 730138] gst_bin_add introspection annatation error leads to python resource leak

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed May 14 11:52:47 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=730138
  GStreamer | gstreamer (core) | 1.2.3

Thiago Sousa Santos <thiagossantos> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #276543|none                        |reviewed
             status|                            |

--- Comment #2 from Thiago Sousa Santos <thiagossantos at gmail.com> 2014-05-14 18:52:42 UTC ---
Review of attachment 276543:
 --> (https://bugzilla.gnome.org/review?bug=730138&attachment=276543)

gst_bin_add is not transfer-none, it indeed takes the reference from the
application as it does a g_object_ref_sink on the passed element if it doesn't
have a parent yet.

What I think you see on your case is that python bindings actually pass a ref
and keep a ref on your variable instead of transforming it to None. If you
print e1 after adding it to the bin you will still see that your variable holds
a ref to it.

Are you looking at this for any particular reason? Are you having an issue with
refcounts?

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list