After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 774686 - GtkMenu does not unref all GtkCheckMenuItem it creates
GtkMenu does not unref all GtkCheckMenuItem it creates
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkMenu
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-11-18 18:15 UTC by Massimo
Modified: 2016-11-23 19:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Massimo 2016-11-18 18:15:41 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.