From 0c2a5de2b1f9b16f87a5ffdd610d027079ee0479 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 19 Jun 2004 22:36:44 +0000 Subject: [PATCH] fixed memory leak in wxURL when using a proxy git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 1 + src/common/url.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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(":"); -- 2.45.2