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
This commit is contained in:
Robin Dunn
1998-12-11 18:19:22 +00:00
parent 5dcf05ae08
commit 50c319beec

View File

@@ -158,7 +158,7 @@ bool wxTaskBarIcon::PopupMenu(wxMenu *menu) //, int x, int y);
rval = win->PopupMenu(menu, 0, 0); rval = win->PopupMenu(menu, 0, 0);
win->PopEventHandler(FALSE); win->PopEventHandler(FALSE);
delete win; win->Destroy();
return rval; return rval;
} }