diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/cl_curl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/cl_curl.c b/src/client/cl_curl.c index 475398d1..2288b7cf 100644 --- a/src/client/cl_curl.c +++ b/src/client/cl_curl.c @@ -296,6 +296,8 @@ void CL_cURL_BeginDownload( const char *localName, const char *remoteURL ) } result = qcurl_multi_add_handle(clc.downloadCURLM, clc.downloadCURL); 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)); return; } |