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:
Andy Wingo 2005-10-20 11:37:04 +00:00
parent b07e3f3cf8
commit 1404e0762b
2 changed files with 7 additions and 1 deletions

View file

@ -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:

View file

@ -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;
}
%%