GNOME Bugzilla – Bug 774686
GtkMenu does not unref all GtkCheckMenuItem it creates
Last modified: 2016-11-23 19:49:00 UTC
Setting GOBJECT_DEBUG=objects and comparing the ouput of 2 run of examples/bp/bloatpad, once pressing <Alt>-E <Esc> <Ctrl>-Q and once pressing <Alt>-E <Esc> <Alt>-E <Esc> <Ctrl>-Q shows the number of GObjects alive at exit increases for the presence of few GtkCheckMenuItem objects. They're created here: https://git.gnome.org/browse/gtk+/tree/gtk/gtkmenu.c?h=gtk-3-22#n3736 and destroyed few rows below. Apparently, not having been added to a parent, it is necessary to ref_sink and unref to fully release them.