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
This commit is contained in:
Vadim Zeitlin
2004-06-19 22:36:44 +00:00
parent 22aff5795e
commit 0c2a5de2b1
2 changed files with 3 additions and 2 deletions

View File

@@ -105,6 +105,7 @@ OTHER CHANGES
All: All:
- number of fixes to wxPluginManager (Rick Brice, Hans Van Leemputten) - number of fixes to wxPluginManager (Rick Brice, Hans Van Leemputten)
- fixed memory leak in wxURL when using a proxy (Steven Van Ingelgem)
All (GUI): All (GUI):

View File

@@ -131,8 +131,8 @@ bool wxURL::ParseURL()
#if wxUSE_SOCKETS #if wxUSE_SOCKETS
if (m_useProxy) if (m_useProxy)
{ {
// We destroy the newly created protocol. // destroy the previously created protocol as we'll be using m_proxy
CleanData(); delete m_protocol;
// Third, we rebuild the URL. // Third, we rebuild the URL.
m_url = m_protoname + wxT(":"); m_url = m_protoname + wxT(":");