GNOME Bugzilla – Bug 312017
Memory leak in gimp_ui_manager_ui_popup
Last modified: 2005-08-06 14:37:55 UTC
While investigating an unrelated ref leak in GTK+, I discovered a memory leak in gimp_ui_manager_ui_popup. It calls gtk_get_current_event (which according to the docs returns a copy of the event) but doesn't free that copy with gdk_event_free. This causes a small memory leak as well as leaked references to the window the event refers to.
Created attachment 49960 [details] [review] Suggested patch
Looks fine. Please commit.
Fixed in CVS: 2005-08-06 Michael Natterer <mitch@gimp.org> * app/widgets/gimpuimanager.c (gimp_ui_manager_ui_popup): applied patch from Robert Ãgren that frees the event returned by gtk_get_current_event(). Fixes bug #312017.