]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/frame.cpp
Ignore DOS drive spec in GetRightLocation
[wxWidgets.git] / src / motif / frame.cpp
index 5092f9fa1a3efc0c29df7b416fa8c40023d09a5f..2d07cc18c09eb38d1c773aa37e6cb99a022f8622 100644 (file)
@@ -383,6 +383,12 @@ wxFrame::~wxFrame()
         m_frameStatusBar = NULL;
     }
 
+    if (m_frameToolBar)
+    {
+        delete m_frameToolBar;
+        m_frameToolBar = NULL;
+    }
+
     DestroyChildren();
 
     if (m_workArea)
@@ -392,6 +398,11 @@ wxFrame::~wxFrame()
         XtDestroyWidget ((Widget) m_workArea);
     }
 
+    // We need to destroy the base class icons here before we stop
+    // the event loop. This is a hack until we have a real top level
+    // window (which would be responsible for killing the event loop).
+    m_icons.m_icons.Empty();
+
     if (m_frameWidget)
     {
         wxDeleteWindowFromTable((Widget) m_frameWidget);