protected virtual void Dispose(bool disposing) { if (Handle == IntPtr.Zero) { return; } Console.WriteLine("glitz_buffer_destroy"); GlitzAPI.glitz_buffer_destroy(Handle); Handle = IntPtr.Zero; }