protected override void FreeUnManagedObjects() { if (this.Handle != default(IntPtr)) { // indirectly invoked CleanupInner LevelDBInterop.leveldb_comparator_destroy(this.Handle); } }
protected override void FreeUnManagedObjects() { if (Handle != IntPtr.Zero) { LevelDBInterop.leveldb_comparator_destroy(Handle); } if (NativeName != IntPtr.Zero) { Marshal.FreeHGlobal(NativeName); } }