mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
gst/gstbin.override (_wrap_gst_bin_get_by_name): Dude, like totally don't unref NULL objects.
Original commit message from CVS: 2005-10-20 Andy Wingo <wingo@pobox.com> * gst/gstbin.override (_wrap_gst_bin_get_by_name): Dude, like totally don't unref NULL objects.
This commit is contained in:
parent
b07e3f3cf8
commit
1404e0762b
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-10-20 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* gst/gstbin.override (_wrap_gst_bin_get_by_name): Dude, like
|
||||
totally don't unref NULL objects.
|
||||
|
||||
2005-10-19 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* gst/gst-types.defs:
|
||||
|
|
|
@ -136,7 +136,8 @@ _wrap_gst_bin_get_by_name(PyGObject *self, PyObject *args, PyObject *kwargs)
|
|||
|
||||
/* pygobject_new handles NULL checking */
|
||||
ret = pygstobject_new((GObject *)el);
|
||||
gst_object_unref (((PyGObject *) ret)->obj); /* from _get_by_name */
|
||||
if (el)
|
||||
gst_object_unref (el); /* from get_by_name */
|
||||
return ret;
|
||||
}
|
||||
%%
|
||||
|
|
Loading…
Reference in a new issue