On Fri, 2006-11-03 at 11:20 +0200, Johan Bilien wrote:
> Now what would be the correct way to dispose of this GdkWindow?
> Currently, when the window disappears from the WM's client list, we
> called gdk_window_destroy () on the window. But the refcount at this
> point seems to be quite unpredictable, and we end up leaking the object.
Ah, yes, also replace the gdk_window_destroy() with gdk_window_unref();
you really don't want to call gdk_window_destroy() on a window that
an application has just temporarily withdrawn.
- Owen
_______________________________________________
gtk-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-devel-list