]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/frame.cpp
Don't reset bullet number and outline number when applying style sheet.
[wxWidgets.git] / src / motif / frame.cpp
index aa9c013680439b517876d70cb4591ae29d67b87e..ea5e99675873e3a34a1b05edd9e4621c35728f92 100644 (file)
@@ -253,7 +253,7 @@ bool wxFrame::XmDoCreateTLW(wxWindow* WXUNUSED(parent),
 
 wxFrame::~wxFrame()
 {
-    m_isBeingDeleted = true;
+    SendDestroyEvent();
 
     if (m_clientArea)
     {
@@ -267,15 +267,10 @@ wxFrame::~wxFrame()
     if (m_frameMenuBar)
     {
         m_frameMenuBar->DestroyMenuBar();
-        delete m_frameMenuBar;
-        m_frameMenuBar = NULL;
+        wxDELETE(m_frameMenuBar);
     }
 
-    if (m_frameStatusBar)
-    {
-        delete m_frameStatusBar;
-        m_frameStatusBar = NULL;
-    }
+    wxDELETE(m_frameStatusBar);
 
     PreDestroy();