OpenHome.Net.ControlPoint.CpDeviceList.Dispose C# (CSharp) Method

Dispose() public method

Must be called for each class instance. Must be called before Core.Library.Close().
public Dispose ( ) : void
return void
        public void Dispose()
        {
            lock (this)
            {
                if (iHandle != IntPtr.Zero)
                {
                    CpDeviceListDestroy(iHandle);
                    iHandle = IntPtr.Zero;
                    iGch.Free();
                }
            }
        }