示例#1
0
 private void Destroy()
 {
     if (InternalPtr != IntPtr.Zero)
     {
         CheckError(PrimeApi.rtpContextDestroy(InternalPtr));
         InternalPtr = IntPtr.Zero;
     }
 }
示例#2
0
 private void Destroy()
 {
     foreach (var disposable in _buffers)
     {
         disposable.Dispose();
     }
     _buffers.Clear();
     if (InternalPtr != IntPtr.Zero)
     {
         CheckError(PrimeApi.rtpContextDestroy(InternalPtr));
         InternalPtr = IntPtr.Zero;
     }
 }