]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ftp.cpp
Use floating point arithmetic in wxDC::GradientFillConcentric().
[wxWidgets.git] / src / common / ftp.cpp
index 218fa457842eb05cafea224ffb0c3bac89504772..49cba58de659abfb04abf2daca185caf1418268c 100644 (file)
@@ -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
     {