X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02244615e5bd44e22d2b338c94c610c9ad046de2..41286fd1def19641be3ae5bb9666c84a1c0b5525:/src/common/http.cpp?ds=sidebyside diff --git a/src/common/http.cpp b/src/common/http.cpp index 4bcfd76870..8471c33926 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -185,11 +185,11 @@ bool wxHTTP::Connect(wxSockAddress& addr, bool WXUNUSED(wait)) { if (m_addr) { delete m_addr; - m_addr = NULL; Close(); } - m_addr = (wxSockAddress *) addr.Clone(); + m_addr = addr.Clone(); + return TRUE; }