]> git.saurik.com Git - wxWidgets.git/commitdiff
a fix for new wu-ftpd
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Jan 2001 17:14:28 +0000 (17:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Jan 2001 17:14:28 +0000 (17:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/ftp.cpp

index d17efc09b1c0e543b620afd38f4e1c28b93fb27c..f485e9a7b0c6b410c884e53fec0ec44d26a88ae5 100644 (file)
@@ -478,6 +478,8 @@ public:
 
     virtual ~wxInputFTPStream()
     {
+        delete m_i_socket;
+
         if ( LastError() == wxStream_NOERROR )
         {
             // wait for "226 transfer completed"
@@ -489,8 +491,6 @@ public:
         {
             m_ftp->Abort();
         }
-
-        delete m_i_socket;
     }
 
     wxFTP *m_ftp;