if we're going to pretend to handle errors, at least clean up before failing

SVN revision: 68129
This commit is contained in:
Mike Blumenkrantz 2012-02-19 22:33:39 +00:00
parent 60b4d79569
commit 9fd11cd9da
1 changed files with 5 additions and 1 deletions

View File

@ -90,7 +90,11 @@ ecore_con_url_init(void)
if (curl_global_init(CURL_GLOBAL_ALL)) return --_init_count;
_curlm = curl_multi_init();
if (!_curlm) return --_init_count;
if (!_curlm)
{
curl_global_cleanup();
return --_init_count;
}
curl_multi_timeout(_curlm, &ms);
if (ms <= 0) ms = 100;