X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9655ec028f79daba0402d0880658a7e1e59c999d..13830d6ff8c668c85f12721f1fdbc98b6add83a7:/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 {