AForge.Video.Ximea.XimeaVideoSource.Free C# (CSharp) Method

Free() private method

private Free ( ) : void
return void
        private void Free( )
        {
            lock ( sync )
            {
                thread = null;

                // release events
                if ( stopEvent != null )
                {
                    stopEvent.Close( );
                    stopEvent = null;
                }

                camera.Close( );
            }
        }