]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/evtloop.cpp
Swap client data pointers in wxRearrangeList too.
[wxWidgets.git] / src / mgl / evtloop.cpp
index 861fc560149324fda9f0f2fccfd8809769af5af1..19e5ac7e673e005099154696baa77cc7d3926058 100644 (file)
@@ -143,8 +143,7 @@ int wxGUIEventLoop::Run()
     OnExit();
 
     int exitcode = m_impl->GetExitCode();
-    delete m_impl;
-    m_impl = NULL;
+    wxDELETE(m_impl);
 
     return exitcode;
 }