X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69ecd30f312bef9440211df29ebd680622a10889..a6b0bd49c72e577a218bfe10fc1526cf2ad6293d:/src/msw/taskbar.cpp 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; }