]> git.saurik.com Git - wxWidgets.git/commitdiff
Changed the "delete win" to the more proper "win->Destroy()" in
authorRobin Dunn <robin@alldunn.com>
Fri, 11 Dec 1998 18:19:22 +0000 (18:19 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 11 Dec 1998 18:19:22 +0000 (18:19 +0000)
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

index b0bd7cc9a7ffac0421071752c063d782a9e1409d..749fabf602a42795db8c795e72a77061e66c0bfc 100644 (file)
@@ -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;
 }