diff --git a/docs/changes.txt b/docs/changes.txt index 20e2480072..cb0f3d7627 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -105,6 +105,7 @@ OTHER CHANGES All: - number of fixes to wxPluginManager (Rick Brice, Hans Van Leemputten) +- fixed memory leak in wxURL when using a proxy (Steven Van Ingelgem) All (GUI): 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(":");