Esempio n. 1
0
        protected virtual void OnDestroy()
        {
            if (currentReader != null)
            {
                currentReader.Release();
            }

            if (currentPixels.IsCreated == true)
            {
                currentPixels.Dispose();
            }
        }
        protected override void OnDestroy()
        {
            base.OnDestroy();

            if (changeReader != null)
            {
                changeReader.Release();
            }

            if (changePixels.IsCreated == true)
            {
                changePixels.Dispose();
            }
        }