mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
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:
parent
b9ba1d81e3
commit
ee6e612754
2 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue