wxFrame::~wxFrame()
{
- m_isBeingDeleted = true;
+ SendDestroyEvent();
+
DeleteAllBars();
} // end of wxFrame::~wxFrame
if ((lStyle & wxFULLSCREEN_NOSTATUSBAR) && pTheStatusBar)
{
m_nFsStatusBarFields = pTheStatusBar->GetFieldsCount();
- SetStatusBar((wxStatusBar*) NULL);
+ SetStatusBar(NULL);
delete pTheStatusBar;
}
else