X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..7a5e53abb3f9ea13eba2880972306446e4e21e83:/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(":");