public void CleanUpNativeData(IntPtr pNativeData) { if (!_leaveAllocated) { SDL.SDL_free(pNativeData); } }
/// <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; } }