Fix crash in AssetsManager

This commit is contained in:
dkorchinskiy 2015-05-07 18:59:51 +03:00
parent 775236b531
commit 0f30ad4f16
1 changed files with 1 additions and 1 deletions

View File

@ -701,7 +701,6 @@ void Downloader::groupBatchDownload(const DownloadUnits &units)
}
// Clean up and close files
curl_multi_cleanup(multi_handle);
for (auto it = _files.begin(); it != _files.end(); ++it)
{
FILE *f = (*it)->fp;
@ -710,6 +709,7 @@ void Downloader::groupBatchDownload(const DownloadUnits &units)
curl_multi_remove_handle(multi_handle, single);
curl_easy_cleanup(single);
}
curl_multi_cleanup(multi_handle);
// Check unfinished files and notify errors, succeed files will be renamed from temporary file name to real name
for (auto it = _progDatas.begin(); it != _progDatas.end(); ++it) {