Exemplo n.º 1
0
 internal unsafe void ReleaseFromTrackerSource()
 {
     if (ReferenceTrackerPtr != IntPtr.Zero)
     {
         ReferenceTracker.ReleaseFromTrackerSource(ReferenceTrackerPtr);
     }
 }
Exemplo n.º 2
0
 private unsafe void DisposeTrackerSource()
 {
     if (ReferenceTrackerPtr != IntPtr.Zero)
     {
         if (!PreventReleaseFromTrackerSourceOnDispose)
         {
             ReferenceTracker.ReleaseFromTrackerSource(ReferenceTrackerPtr);
         }
         ReferenceTracker.IUnknownVftbl.Release(ReferenceTrackerPtr);
     }
 }