From: Julian Smart Date: Sun, 1 Sep 2002 15:48:58 +0000 (+0000) Subject: Clean up string table before uninitializing DDEML X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5a33bc097f84fdcf82ffbb874c111eabbbdb3911 Clean up string table before uninitializing DDEML 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 --- diff --git a/src/msw/dde.cpp b/src/msw/dde.cpp index 0787b6d540..e51425d8b3 100644 --- a/src/msw/dde.cpp +++ b/src/msw/dde.cpp @@ -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);