]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/app.cpp
Made wxWindow::Enable recursive in order to solve colouring problems; forced the...
[wxWidgets.git] / src / msw / app.cpp
index 3424745eafa1e9eefb0daeeac4afd21b526ccfce..80165004e02f42feb13be81aa3a964632acf9689 100644 (file)
@@ -601,7 +601,9 @@ void wxApp::CleanUp()
 #if wxUSE_THREADS
     delete wxPendingEventsLocker;
     // If we don't do the following, we get an apparent memory leak.
+#if wxUSE_VALIDATORS
     ((wxEvtHandler&) wxDefaultValidator).ClearEventLocker();
+#endif
 #endif
 
     wxClassInfo::CleanUpClasses();