X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9655ec028f79daba0402d0880658a7e1e59c999d..d176b30156f3e215df74eaa0c2494f0c267beb5f:/src/common/ftp.cpp diff --git a/src/common/ftp.cpp b/src/common/ftp.cpp index 218fa45784..49cba58de6 100644 --- a/src/common/ftp.cpp +++ b/src/common/ftp.cpp @@ -203,8 +203,7 @@ wxSocketBase *wxFTP::AcceptIfActive(wxSocketBase *sock) { m_lastError = wxPROTO_CONNERR; wxLogError(_("Timeout while waiting for FTP server to connect, try passive mode.")); - delete sock; - sock = NULL; + wxDELETE(sock); } else {