From 4690aa28d0c463fc07b845c08ed5e23e45f9df83 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 26 Oct 2011 11:39:15 +0200 Subject: [PATCH] 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 file changed, 2 deletions(-) diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c index 50f6c5c46a..e8ebf89eb7 100644 --- a/gdk/win32/gdkwindow-win32.c +++ b/gdk/win32/gdkwindow-win32.c @@ -752,8 +752,6 @@ gdk_win32_window_destroy (GdkWindow *window, window->destroyed = TRUE; DestroyWindow (GDK_WINDOW_HWND (window)); } - - gdk_win32_handle_table_remove (GDK_WINDOW_HWND (window)); } static cairo_surface_t *