CurlSharp.NativeMethods.curl_shim_free_slist C# (CSharp) Method

curl_shim_free_slist() private method

private curl_shim_free_slist ( IntPtr p ) : void
p System.IntPtr
return void
        internal static extern void curl_shim_free_slist(IntPtr p);

Usage Example

Esempio n. 1
0
        private void Dispose(bool disposing)
        {
            lock (this)
            {
                if (Handle != IntPtr.Zero)
                {
#if USE_LIBCURLSHIM
                    NativeMethods.curl_shim_free_slist(Handle);
#else
                    NativeMethods.curl_slist_free_all(Handle);
#endif
                    Handle = IntPtr.Zero;
                }
            }
        }