X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25959b956d323264d8c974a41eea579bf565cd8e..a290fa5a7deebe9d96c0c0089d18e27d4bd9b624:/src/common/url.cpp diff --git a/src/common/url.cpp b/src/common/url.cpp index 6c0da6ee29..12728a9b0e 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -131,8 +131,8 @@ bool wxURL::ParseURL() #if wxUSE_SOCKETS if (m_useProxy) { - // We destroy the newly created protocol. - CleanData(); + // destroy the previously created protocol as we'll be using m_proxy + delete m_protocol; // Third, we rebuild the URL. m_url = m_protoname + wxT(":");