]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/mdi.cpp
Swap client data pointers in wxRearrangeList too.
[wxWidgets.git] / src / msw / mdi.cpp
index 6dd3e63db51017bf09f232a18f03d842bea144e2..44f8c19f172a0249649458c8306288501a607c2c 100644 (file)
@@ -369,8 +369,7 @@ void wxMDIParentFrame::SetWindowMenu(wxMenu* menu)
     }
 
 #if wxUSE_ACCEL
-    delete m_accelWindowMenu;
-    m_accelWindowMenu = NULL;
+    wxDELETE(m_accelWindowMenu);
 
     if ( menu && menu->HasAccels() )
         m_accelWindowMenu = menu->CreateAccelTable();