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:
Edward Hervey 2009-02-09 13:25:11 +01:00
parent 531b34bcbf
commit 9291aa202f

View file

@ -160,7 +160,7 @@ class GstMiniObjectParam(Parameter):
" py_%s = Py_None;\n" " py_%s = Py_None;\n"
"}" "}"
% (self.name, self.name, self.name, self.name, self.name)), % (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) self.wrapper.add_pyargv_item("py_%s" % self.name)
matcher.register_reverse('GstMiniObject*', GstMiniObjectParam) matcher.register_reverse('GstMiniObject*', GstMiniObjectParam)