X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02244615e5bd44e22d2b338c94c610c9ad046de2..fa1c12bdd76acc21ddb45b90bb53b2f58aed946d:/src/common/http.cpp 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; }