gst/gstpad.override: don't leak the parent when repr'ing pads

Original commit message from CVS:

* gst/gstpad.override:
don't leak the parent when repr'ing pads
This commit is contained in:
Thomas Vander Stichele 2005-09-28 09:52:37 +00:00
parent b9ba1d81e3
commit ee6e612754
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-09-28 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstpad.override:
don't leak the parent when repr'ing pads
2005-09-28 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/__init__.py:

View file

@ -395,6 +395,8 @@ _wrap_gst_pad_tp_repr (PyGObject *self)
buf = g_strdup_printf ("<GstPad (%s:%s) at %lx>",
parent ? gst_element_get_name (parent) : "---",
gst_pad_get_name (pad), (long) self->obj);
if (parent)
gst_object_unref (parent);
retval = PyString_FromString(buf);
g_free(buf);