コード例 #1
0
ファイル: Curl.cs プロジェクト: 554393109/CurlClient
 /// <summary>
 /// Process-wide cleanup -- call just before exiting process.
 /// </summary>
 /// <remarks>
 /// While it's not necessary that your program call this method
 /// before exiting, doing so will prevent leaks of native cURL resources.
 /// </remarks>
 public static void GlobalCleanup()
 {
     if (sm_curlCode == CURLcode.CURLE_OK)
     {
         External.curl_shim_cleanup();
         External.curl_global_cleanup();
         sm_curlCode = CURLcode.CURLE_FAILED_INIT;
     }
 }