wininet: Release session after FTP_ReceiveResponse call in FTPFILE_Destroy.

This commit is contained in:
Jacek Caban 2009-03-09 01:49:20 +01:00 committed by Alexandre Julliard
parent 96848a0605
commit 0031b40454
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}