Fixed: Releasing curl handle when not connected.

develop
Nimetu 4 years ago
parent da890311bb
commit 4fd3f59b9a

@ -191,8 +191,11 @@ bool CCurlHttpClient::receive(string &res, bool verbose)
// ***************************************************************************
void CCurlHttpClient::disconnect()
{
curl_easy_cleanup(_Curl);
_CurlStruct = NULL;
if (_CurlStruct)
{
curl_easy_cleanup(_Curl);
_CurlStruct = NULL;
}
curl_global_cleanup();
}

Loading…
Cancel
Save