X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25959b956d323264d8c974a41eea579bf565cd8e..6d325d81bc739bf545df5c00183fc7d5880b8a43:/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(":");