GNOME Bugzilla – Bug 623969
make sure caller allocated structs are freed when they go out of scope
Last modified: 2012-04-04 16:09:21 UTC
* Move struct transfer checks from pygi-arguments to pygi-invoke * add better warning if an unknown struct is fully transfered * only free GValues we create in the invoke cleanup. All other structs get cleaned up when they go out of scope in python * Fixes issues with caller allocated treeiters getting freed to early * this is a fix to crashes in the current test suite when API's returning TreeIters were annotated as out caller-allocates so no new tests are needed
Created attachment 165568 [details] [review] make sure caller allocated structs are freed when they go out of scope
Attachment 165568 [details] pushed as c9da578 - make sure caller allocated structs are freed when they go out of scope
This patch has broken the following test: test_tree_api (test_overrides.TestGtk) ... python: malloc.c:4628: _int_malloc: Assertion `(unsigned long)(size) >= (unsigned long)(nb)' failed.
The patch was committed long ago, and the tests work, so I think this can be closed.