From 73bb488c7a945c610d2ffa3f59507d0d11721f8d Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Wed, 27 May 2009 17:37:35 +0000 Subject: [PATCH] Mikhail Denisenko - Destroy proper windows, fixes one more memory leak. See issue #2012 for more details. svn path=/trunk/; revision=41146 --- reactos/base/shell/explorer/taskbar/startmenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/base/shell/explorer/taskbar/startmenu.cpp b/reactos/base/shell/explorer/taskbar/startmenu.cpp index 956d913f196..7cbc2a2b6a4 100644 --- a/reactos/base/shell/explorer/taskbar/startmenu.cpp +++ b/reactos/base/shell/explorer/taskbar/startmenu.cpp @@ -1943,7 +1943,8 @@ int StartMenuHandler::Command(int id, int code) #ifndef __REACTOS__ case IDC_TERMINATE: - DestroyWindow(GetParent(_hwnd)); + DestroyWindow(g_Globals._hwndDesktopBar); + DestroyWindow(g_Globals._hwndDesktop); break; #endif