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 147704 - Gtk::Settings::get_default() incorrectly uses Glib::RefPtr
Gtk::Settings::get_default() incorrectly uses Glib::RefPtr
Status: RESOLVED DUPLICATE of bug 147592
Product: gtkmm
Classification: Bindings
Component: general
2.4
Other All
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2004-07-16 10:44 UTC by Raymond Penners
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Raymond Penners 2004-07-16 10:44:14 UTC
I am experiencing random crashes when using Gtk::Settings::get_default(). The
problem appears to be caused by the use of the RefPtr: if you look into the
implementation of gtk_settings_get_default(), you'll notice that the caller of
that function is not the owner of the returned data. The GdkSettings object is
not supposed to be freed when it is not longer used, as the GdkSettings object
is "attached" to the underlying GdkScreen.
Comment 1 Murray Cumming 2004-07-17 10:34:39 UTC
This is a duplicate of #147592, which you entered yourself.

*** This bug has been marked as a duplicate of 147592 ***