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 656486 - gtk_combo_box_new_with_model_and_entry leaks the list store (again)
gtk_combo_box_new_with_model_and_entry leaks the list store (again)
Status: RESOLVED NOTGNOME
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
2.24.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-08-13 23:26 UTC by Stian Skjelstad
Modified: 2011-08-20 21:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test2.c (1.26 KB, text/plain)
2011-08-13 23:26 UTC, Stian Skjelstad
Details

Description Stian Skjelstad 2011-08-13 23:26:22 UTC
Created attachment 193794 [details]
test2.c

This is tested with Ubuntu 11.04 / gtk-2.24.4

Searching for leaks for this component reveals that is has been a problem in the past aswell.

BTW: For me, it only leaks if the liststore has data-set (see attachment)
Comment 1 Stian Skjelstad 2011-08-13 23:28:01 UTC
The given attachment should provide two warnings about invalid unref-ing, but for me it only provides one, which tells me that something left a reference behind.
Comment 2 Stian Skjelstad 2011-08-20 21:46:12 UTC
I've done some more research. The bug doesn't occure when testing on my gentoo host using the same GTK version. So this bug is either triggered by a ubuntu patch or a theme engine.

Further I traced down the issue to be the combo-box itself. gtk_combo_box_finalize is never called if model contains data on my ubuntu host.

Further investigation gives ubuntu the blame, closing the bug-report:
 https://bugs.launchpad.net/appmenu-gtk/+bug/830260