Commit e6cd027e authored by Vincent Genieux's avatar Vincent Genieux Committed by Edward Hervey

gst/arg-types.py: Fix memory leak for GstMiniObjects used as parameters in class method overrides.

Original commit message from CVS:
Patch by : Vincent Genieux <mutex at runbox dot com>
* gst/arg-types.py:
Fix memory leak for GstMiniObjects used as parameters in class method
overrides.
Fixes #543961
parent 75bd1f6f
2008-12-09 Edward Hervey <edward.hervey@collabora.co.uk>
Patch by : Vincent Genieux <mutex at runbox dot com>
* gst/arg-types.py:
Fix memory leak for GstMiniObjects used as parameters in class method
overrides.
Fixes #543961
2008-12-06 Edward Hervey <edward.hervey@collabora.co.uk>
* gst/gstpad.override:
......
......@@ -160,7 +160,7 @@ class GstMiniObjectParam(Parameter):
" py_%s = Py_None;\n"
"}"
% (self.name, self.name, self.name, self.name, self.name)),
cleanup=("gst_mini_object_ref ((GstMiniObject *) %s);\nPy_DECREF(py_%s);" % (self.name, self.name)))
cleanup=("Py_DECREF(py_%s);" % self.name))
self.wrapper.add_pyargv_item("py_%s" % self.name)
matcher.register_reverse('GstMiniObject*', GstMiniObjectParam)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment