From: Robin Dunn Date: Fri, 11 Dec 1998 18:19:22 +0000 (+0000) Subject: Changed the "delete win" to the more proper "win->Destroy()" in X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/50c319beec2454b4f669b6c8cf3d089f53c979f6 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 --- 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; }