CSharpGL.UnmanagedArrayBase.DisposeUnmanagedResources C# (CSharp) Method

DisposeUnmanagedResources() protected method

Dispose unmanaged resources
protected DisposeUnmanagedResources ( ) : void
return void
        protected virtual void DisposeUnmanagedResources()
        {
            if (this.manualDispose)
            {
                this.Header = IntPtr.Zero;
                this.Length = 0;
            }
            else
            {
                IntPtr header = this.Header;
                if (header != IntPtr.Zero)
                {
                    Marshal.FreeHGlobal(header);
                    this.Header = IntPtr.Zero;
                    this.Length = 0;
                }
            }
        }