Exemple #1
0
 override protected bool ReleaseHandle()
 {
     if (handle != IntPtr.Zero)
     {
         if (_useLocalFree == true)
         {
             UnsafeNativeMethods.LocalFree(handle);
         }
         else
         {
             Marshal.FreeHGlobal(handle);
         }
         handle = IntPtr.Zero;
         return(true);
     }
     return(false);
 }