bilboed gst-python: gst-python/ gst-python/gst/

[email protected] Tue, 9 Dec 2008 02:16:22 -0800 (PST)
Newsgroups gmane.comp.video.gstreamer.cvs
Message-ID <[email protected]>
CVS Root:       /cvs/gstreamer
Module:         gst-python
Changes by:     bilboed
Date:           Tue Dec 09 2008  10:16:22 UTC

Log message:
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

Modified files:
    .               : ChangeLog
    gst             : arg-types.py

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/ChangeLog.diff?r1=1.699&r2=1.700
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/gst/arg-types.py.diff?r1=1.20&r2=1.21

====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-python/ChangeLog,v
retrieving revision 1.699
retrieving revision 1.700
diff -u -d -r1.699 -r1.700
--- ChangeLog	6 Dec 2008 15:52:31 -0000	1.699
+++ ChangeLog	9 Dec 2008 10:16:07 -0000	1.700
@@ -1,3 +1,11 @@
+2008-12-09  Edward Hervey  <[email protected]>
+
+	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  <[email protected]>
 
 	* gst/gstpad.override:
Index: arg-types.py
RCS file: /cvs/gstreamer/gst-python/gst/arg-types.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- arg-types.py	8 May 2008 14:03:17 -0000	1.20
+++ arg-types.py	9 Dec 2008 10:16:08 -0000	1.21
@@ -160,7 +160,7 @@
 					      "    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)

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/