X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69ecd30f312bef9440211df29ebd680622a10889..2004484f9b139978e86c3e9e102001a46f493576:/src/msw/taskbar.cpp diff --git a/src/msw/taskbar.cpp b/src/msw/taskbar.cpp index b0bd7cc9a7..68c7ac60aa 100644 --- a/src/msw/taskbar.cpp +++ b/src/msw/taskbar.cpp @@ -23,13 +23,16 @@ #ifndef WX_PRECOMP #include "wx/defs.h" +#include "wx/window.h" +#include "wx/frame.h" +#include "wx/utils.h" #endif #ifdef __WIN95__ -#include -#include #include +#include +#include #include #ifdef __GNUWIN32__ @@ -158,7 +161,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; }