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
@ -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…
x
Reference in New Issue
Block a user