]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/url.cpp
Spelling fixes [#1017001], source cleaning.
[wxWidgets.git] / src / common / url.cpp
index 6c0da6ee2921fbbee52720e73a2ff240b7b36b68..12728a9b0e4d0ae1456219fd854b5cdd6147e386 100644 (file)
@@ -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(":");