GNOME Bugzilla – Bug 305994
Possible memory leak in gimp-2.3.0/libgimpwidgets/gimpenumwidgets.c, function gimp_enum_stock_box_set_child_padding
Last modified: 2008-01-15 14:03:56 UTC
In file: gimp-2.3.0/libgimpwidgets/gimpenumwidgets.c function: gimp_enum_stock_box_set_child_padding /* At line 411 memory is allocated by gtk_container_get_children */ for (list = gtk_container_get_children (GTK_CONTAINER (stock_box)); list; list = g_list_next (list)) ... The list is then iterated, but never freed. It looks like the programmer did not know that gtk_container_get_children returns new memory (which it is my understanding that is the case). This possible memory leak was found using a static analysis tool.
Thanks for spotting our memleaks :) 2005-05-31 Sven Neumann <sven@gimp.org> * libgimpwidgets/gimpenumwidgets.c (gimp_enum_stock_box_set_child_padding): don't leak the return value of gtk_container_get_children (bug #305994, spotted by Ted Kremenek).