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