Tango.Tango3DReconstruction.Dispose C# (CSharp) Method

Dispose() public method

Releases all resource used by the Tango3DReconstruction object.
Call Dispose when you are finished using the Tango3DReconstruction. The Dispose method leaves the Tango3DReconstruction in an unusable state. After calling Dispose, you must release all references to the Tango3DReconstruction so the garbage collector can reclaim the memory that the Tango3DReconstruction was occupying.
public Dispose ( ) : void
return void
        public void Dispose()
        {
            if (m_context != IntPtr.Zero)
            {
                API.Tango3DR_destroy(m_context);
            }

            m_context = IntPtr.Zero;
        }