GAudio.GATDataAllocator.Dispose C# (CSharp) 메소드

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void
        public void Dispose()
        {
            Dispose( true );
            GC.SuppressFinalize( this );
        }

Same methods

GATDataAllocator::Dispose ( bool explicitly ) : void

Usage Example

예제 #1
0
파일: GATManager.cs 프로젝트: r618/G-Audio
        void OnDestroy()
        {
            if (__uniqueInstance != this)              //Destroying an illegal duplicate
            {
                return;
            }
            //Call static cleaners first
            GATPlayer.CleanUpStatics();

            if (__allocator != null)
            {
                __allocator.Dispose();
                __allocator = null;
            }

            DefaultPlayer = null;

            __uniqueInstance = null;

            onMainThreadResumed = null;

            //System.GC.Collect();
        }