[gtk+/gtk-2-24-quartz] win32: Don't remove the window from the handle table on destroy
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24-quartz] win32: Don't remove the window from the handle table on destroy
- Date: Wed, 23 Nov 2011 22:59:52 +0000 (UTC)
commit e181e84874d104e3cc5fb85c74e2c809f96ed91c
Author: Alexander Larsson <alexl redhat com>
Date: Wed Oct 26 11:39:15 2011 +0200
win32: Don't remove the window from the handle table on destroy
We always get the WM_DESTROY message anyway, and we remove it there.
Bug #336416 even claims this could be a leak if the WM_DESTROY
message was not seen before the DestroyWindow call returned, as
the WM_DESTROY message could not be handled later without the
window in the handle table. I'm not sure this can happen, but we
might as well remove it.
gdk/win32/gdkwindow-win32.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index b6434ca..f765fa7 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -855,8 +855,6 @@ _gdk_win32_window_destroy (GdkWindow *window,
private->destroyed = TRUE;
DestroyWindow (GDK_WINDOW_HWND (window));
}
-
- gdk_win32_handle_table_remove (GDK_WINDOW_HWND (window));
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]