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 614501 - RefPtr from Gdk::Window::create() misses one reference count.
RefPtr from Gdk::Window::create() misses one reference count.
Status: RESOLVED INVALID
Product: glibmm
Classification: Bindings
Component: general
2.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2010-03-31 19:14 UTC by Hammered
Modified: 2010-04-07 13:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hammered 2010-03-31 19:14:10 UTC
This is related to this bug->https://bugzilla.gnome.org/show_bug.cgi?id=606903

It is a regression from the glibmm version included in Ubuntu 9.04(sorry can't remember the version). This regression is present in the version included in Ubuntu 10.04 beta1. All the info are in the bug above.
Comment 1 Murray Cumming 2010-03-31 20:54:05 UTC
We use gdk_window_new()
  http://library.gnome.org/devel/gdk/stable/gdk-Windows.html#gdk-window-new
Why do you think we need to take an extra reference count?

It's extremely unlikely that anything about Gdk::Window has changed recently. I think we need a small test case to show the problem.
Comment 2 Hammered 2010-03-31 21:59:24 UTC
Well upping the count made the warning dissapear. But maybe the underlying object wasn't destroyed yet because of that!?!?!?

Dunno, feel free to close the bug if you think I misinterpreted stuff...
Comment 3 Murray Cumming 2010-04-07 13:03:05 UTC
I can't see any problem with this function, though I haven't solved the other bug yet.