public static void FreeCoTaskMem(IntPtr ptr) { if (!IsWin32Atom(ptr)) { Win32Native.CoTaskMemFree(ptr); } }
internal static void ClearNative(IntPtr pNative) { if (IntPtr.Zero != pNative) { Win32Native.CoTaskMemFree((IntPtr)((long)pNative - 4L)); } }
internal static void ClearNative(IntPtr pNative) { if (pNative != IntPtr.Zero) { Win32Native.CoTaskMemFree(pNative); } }
internal void ClearNative(IntPtr pNativeHome) { if (pNativeHome != IntPtr.Zero) { if (this.layoutType != null) { Marshal.DestroyStructure(pNativeHome, this.layoutType); } Win32Native.CoTaskMemFree(pNativeHome); } StubHelpers.DestroyCleanupList(ref this.cleanupWorkList); }