diff --git a/src/common/url.cpp b/src/common/url.cpp index eae17c35ca..c2e863f0b4 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -36,11 +36,12 @@ IMPLEMENT_CLASS(wxURL, wxObject) wxProtoInfo *wxURL::ms_protocols = NULL; // Enforce linking of protocol classes: -USE_PROTOCOL(wxHTTP) -USE_PROTOCOL(wxFTP) USE_PROTOCOL(wxFileProto) #if wxUSE_SOCKETS +USE_PROTOCOL(wxHTTP) +USE_PROTOCOL(wxFTP) + wxHTTP *wxURL::ms_proxyDefault = NULL; bool wxURL::ms_useDefaultProxy = FALSE; #endif diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 3424745eaf..80165004e0 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -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();