GNOME Bugzilla – Bug 318684
[PATCH] reference leaks when using PyList_Append to populate a list
Last modified: 2005-10-13 10:59:22 UTC
in gst-python PyList_Append is used to populate a list with newly created objects. PyList_Append doesn't steal the reference of the new object. The function provided by python to support that idiom is PyList_SetItem.
Created attachment 53374 [details] [review] fix
Nice patch! SetItem is also faster than Append, since you can allocate the whole list at once.
phew, 3 patches in 3 days :) Keep on the good work. Commited to cvs and closing bug