Fixed: Releasing curl handle when not connected.

develop
Nimetu 4 years ago
parent da890311bb
commit 4fd3f59b9a

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

Loading…
Cancel
Save