]> git.saurik.com Git - wxWidgets.git/commitdiff
Clean up string table before uninitializing DDEML
authorJulian Smart <julian@anthemion.co.uk>
Sun, 1 Sep 2002 15:48:58 +0000 (15:48 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 1 Sep 2002 15:48:58 +0000 (15:48 +0000)
to cure crash on exit in memory-debug mode

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dde.cpp

index 0787b6d5400aa911ce1be96859e1d16810d440e7..e51425d8b36551d728e8b29a60d9e16c611f0da6 100644 (file)
@@ -191,6 +191,16 @@ extern void wxDDEInitialize()
 
 void wxDDECleanUp()
 {
+    wxDDEClientObjects.DeleteContents(TRUE);
+    wxDDEClientObjects.Clear();
+    wxDDEClientObjects.DeleteContents(FALSE);
+
+    wxDDEServerObjects.DeleteContents(TRUE);
+    wxDDEServerObjects.Clear();
+    wxDDEServerObjects.DeleteContents(FALSE);
+
+    wxAtomTable.Clear();
+
     if ( DDEIdInst != 0 )
     {
         DdeUninitialize(DDEIdInst);