]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/app.cpp
more 2.0b9 updates
[wxWidgets.git] / src / msw / app.cpp
index be78f823197272033a8157f6a35ec3b61c709733..2ca841caa52b4092e38b7744bf2c9637153100f2 100644 (file)
@@ -562,6 +562,8 @@ void wxApp::CleanUp()
 #if wxUSE_THREADS
     delete wxPendingEvents;
     delete wxPendingEventsLocker;
 #if wxUSE_THREADS
     delete wxPendingEvents;
     delete wxPendingEventsLocker;
+    // If we don't do the following, we get an apparent memory leak.
+    ((wxEvtHandler&) wxDefaultValidator).ClearEventLocker();
 #endif
 
     wxClassInfo::CleanUpClasses();
 #endif
 
     wxClassInfo::CleanUpClasses();