From: gnome-perl (bugzilla.gnome.o. <bug...@gn...> - 2012-08-14 19:10:38
|
https://bugzilla.gnome.org/show_bug.cgi?id=680380 gnome-perl | Glib | unspecified Torsten Schoenfeld <kaffeetisch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kaf...@gm... --- Comment #2 from Torsten Schoenfeld <kaf...@gm...> 2012-08-14 19:10:24 UTC --- Nice catch! For some reason, valgrind doesn't see this. The problem is that for caller-allocated out-arguments (like GtkTreeIter), we always use malloc(): <http://git.gnome.org/browse/perl-Glib-Object-Introspection/tree/gperl-i11n-invoke-c.c#n280>. But GtkTreeIter is set up to allocate and free itself via GSlice. I think we will need to change allocate_out_mem() to use g_boxed_copy() on the memory that was allocated with malloc(); afterwards, we can free() the original memory block. This will ensure that the right allocator is used. -- Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. |