]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dde.cpp
fix for DMC missing mouse defines - linking of minimal failed
[wxWidgets.git] / src / msw / dde.cpp
index 1ddd1a726d719001543bbc61ace2a540b4d8af8a..72bf2a9230daf7c040c4bfbae4d0716695328f17 100644 (file)
@@ -194,8 +194,10 @@ extern void wxDDEInitialize()
 
 void wxDDECleanUp()
 {
-    WX_CLEAR_LIST(wxDDEClientList, wxDDEClientObjects);
-    WX_CLEAR_LIST(wxDDEServerList, wxDDEServerObjects);
+    // deleting them later won't work as DDE won't be initialized any more
+    wxASSERT_MSG( wxDDEServerObjects.empty() &&
+                    wxDDEClientObjects.empty(),
+                    _T("all DDE objects should be deleted by now") );
 
     wxAtomTable.clear();