GNOME Bugzilla – Bug 688362
GtkApplication: Fix memory leak
Last modified: 2013-01-04 14:51:56 UTC
GtkApplication leaks from an unfree()d g_strconcat() in gtk_application_x11_publish_menu(). Patch attached
Created attachment 229021 [details] [review] GtkApplication: Fix memory leak in gtk_application_x11_publish_menu
Comment on attachment 229021 [details] [review] GtkApplication: Fix memory leak in gtk_application_x11_publish_menu The above patch breaks the app menu. I'm making a new patch to do the freeing in gtk_application_finalize()
Created attachment 229024 [details] [review] GtkApplication: Properly unexport x11 menus This is a proper fix. I really tested it, I swear! As a side effect of fixing the memory leak, MenuModels are now actually unexported at shutdown.
Review of attachment 229024 [details] [review]: This looks like fallout from the last time 'memory leaks' were fixed in this area of the code (and ended up causing crashes) -- it never got fixed again properly.
Comment on attachment 229024 [details] [review] GtkApplication: Properly unexport x11 menus Pushed to the master branch.