mirror of https://github.com/axmolengine/axmol.git
Fix crash in AssetsManager
This commit is contained in:
parent
775236b531
commit
0f30ad4f16
|
@ -701,7 +701,6 @@ void Downloader::groupBatchDownload(const DownloadUnits &units)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clean up and close files
|
// Clean up and close files
|
||||||
curl_multi_cleanup(multi_handle);
|
|
||||||
for (auto it = _files.begin(); it != _files.end(); ++it)
|
for (auto it = _files.begin(); it != _files.end(); ++it)
|
||||||
{
|
{
|
||||||
FILE *f = (*it)->fp;
|
FILE *f = (*it)->fp;
|
||||||
|
@ -710,6 +709,7 @@ void Downloader::groupBatchDownload(const DownloadUnits &units)
|
||||||
curl_multi_remove_handle(multi_handle, single);
|
curl_multi_remove_handle(multi_handle, single);
|
||||||
curl_easy_cleanup(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
|
// 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) {
|
for (auto it = _progDatas.begin(); it != _progDatas.end(); ++it) {
|
||||||
|
|
Loading…
Reference in New Issue