Re: Re: GdkWindow ref counting
- From: Owen Taylor <otaylor redhat com>
- To: Johan Bilien <johan bilien nokia com>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>, Tim Janik <timj imendio com>
- Subject: Re: Re: GdkWindow ref counting
- Date: Fri, 03 Nov 2006 08:28:07 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]