]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/app.cpp
set the containing sizer to NULL when destroying the sizer; this fixes a crash (don...
[wxWidgets.git] / src / mac / app.cpp
index 04f3eee3b5bdde44b4d312b43e340a6b35eede28..d53f06edaf8d9922c74422712bea183b72e2963d 100644 (file)
@@ -322,12 +322,12 @@ MenuEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
                           &menuRef);
 #endif // 0
 
-        wxMenuEvent event(GetEventKind(event) == kEventMenuOpening
+        wxMenuEvent wxevent(GetEventKind(event) == kEventMenuOpening
                         ? wxEVT_MENU_OPEN
                         : wxEVT_MENU_CLOSE);
-        event.SetEventObject(win);
+        wxevent.SetEventObject(win);
 
-        (void)win->GetEventHandler()->ProcessEvent(event);
+        (void)win->GetEventHandler()->ProcessEvent(wxevent);
     }
 
     return eventNotHandledErr;