X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..2d1760d30ff85ea96fb69d38b7710f695a0148d2:/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(":");