mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
GstMiniObject: Re-increment the C refcount after using a miniobject.
This behaviour is symmetrical to what we do at the very beginning (incrementing the Python refcount of the wrapper object and decrementing the C refcount of the actual object).
This commit is contained in:
parent
531b34bcbf
commit
9291aa202f
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ class GstMiniObjectParam(Parameter):
|
|||
" py_%s = Py_None;\n"
|
||||
"}"
|
||||
% (self.name, self.name, self.name, self.name, self.name)),
|
||||
cleanup=("Py_DECREF(py_%s);" % self.name))
|
||||
cleanup=("gst_mini_object_ref ((GstMiniObject *) %s); Py_DECREF(py_%s);" % (self.name, self.name)))
|
||||
self.wrapper.add_pyargv_item("py_%s" % self.name)
|
||||
|
||||
matcher.register_reverse('GstMiniObject*', GstMiniObjectParam)
|
||||
|
|
Loading…
Reference in a new issue