mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-30 16:01:46 +00:00
Merge pull request #144 from Pan7/qurl_handle2
Add missing qcurl handle cleanup
This commit is contained in:
commit
ca2743c2f3
1 changed files with 2 additions and 0 deletions
|
@ -295,6 +295,8 @@ void CL_cURL_BeginDownload( const char *localName, const char *remoteURL )
|
||||||
}
|
}
|
||||||
result = qcurl_multi_add_handle(clc.downloadCURLM, clc.downloadCURL);
|
result = qcurl_multi_add_handle(clc.downloadCURLM, clc.downloadCURL);
|
||||||
if(result != CURLM_OK) {
|
if(result != CURLM_OK) {
|
||||||
|
qcurl_easy_cleanup(clc.downloadCURL);
|
||||||
|
clc.downloadCURL = NULL;
|
||||||
Com_Error(ERR_DROP,"CL_cURL_BeginDownload: qcurl_multi_add_handle() failed: %s", qcurl_multi_strerror(result));
|
Com_Error(ERR_DROP,"CL_cURL_BeginDownload: qcurl_multi_add_handle() failed: %s", qcurl_multi_strerror(result));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue