From 50c319beec2454b4f669b6c8cf3d089f53c979f6 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 11 Dec 1998 18:19:22 +0000 Subject: [PATCH] Changed the "delete win" to the more proper "win->Destroy()" in PopupMenu. The sample still has the Close anomally though... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/taskbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/taskbar.cpp b/src/msw/taskbar.cpp index b0bd7cc9a7..749fabf602 100644 --- a/src/msw/taskbar.cpp +++ b/src/msw/taskbar.cpp @@ -158,7 +158,7 @@ bool wxTaskBarIcon::PopupMenu(wxMenu *menu) //, int x, int y); rval = win->PopupMenu(menu, 0, 0); win->PopEventHandler(FALSE); - delete win; + win->Destroy(); return rval; } -- 2.47.2