X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..fbd11d30c8499ef25989974ef6ec16fb5b759668:/src/common/url.cpp diff --git a/src/common/url.cpp b/src/common/url.cpp index 62d7991efb..12728a9b0e 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -6,7 +6,7 @@ // Created: 20/07/1997 // RCS-ID: $Id$ // Copyright: (c) 1997, 1998 Guilhem Lavaux -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) @@ -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(":");