Jacek Caban : wininet: Release session after FTP_ReceiveResponse call in FTPFILE_Destroy.
Alexandre Julliard
julliard at winehq.org
Mon Mar 9 09:40:34 CDT 2009
Module: wine
Branch: master
Commit: 0031b40454d81b48f43f6042a80a951a42a1cddb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0031b40454d81b48f43f6042a80a951a42a1cddb
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Mar 9 01:49:20 2009 +0100
wininet: Release session after FTP_ReceiveResponse call in FTPFILE_Destroy.
---
dlls/wininet/ftp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 01a8105..ef1eef1 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -1092,8 +1092,6 @@ static void FTPFILE_Destroy(WININETHANDLEHEADER *hdr)
TRACE("\n");
- WININET_Release(&lpwh->lpFtpSession->hdr);
-
if (!lpwh->session_deleted)
lpwfs->download_in_progress = NULL;
@@ -1103,6 +1101,8 @@ static void FTPFILE_Destroy(WININETHANDLEHEADER *hdr)
nResCode = FTP_ReceiveResponse(lpwfs, lpwfs->hdr.dwContext);
if (nResCode > 0 && nResCode != 226) WARN("server reports failed transfer\n");
+ WININET_Release(&lpwh->lpFtpSession->hdr);
+
HeapFree(GetProcessHeap(), 0, lpwh);
}
More information about the wine-cvs
mailing list