Пример #1
0
 public void CleanUpNativeData(IntPtr pNativeData)
 {
     if (!_leaveAllocated)
     {
         SDL.SDL_free(pNativeData);
     }
 }
Пример #2
0
 /// <summary>
 /// Free external memory held by current.
 /// </summary>
 public void Dispose()
 {
     if (_handle != IntPtr.Zero)
     {
         SDL.SDL_free(_handle);
         _handle   = IntPtr.Zero;
         _capacity = 0;
         _count    = 0;
     }
 }