Ejemplo n.º 1
0
        /// <inheritdoc/>
        protected override void Dispose(bool disposing)
        {
            if (shadowEventHandler != null)
            {
                SetManagerEventHandler_(IntPtr.Zero);
                shadowEventHandler.Dispose();
                shadowEventHandler = null;
            }

            if (cancelPriorityComparisonShadow != null)
            {
                SetCancelPriorityComparison_(IntPtr.Zero);
                cancelPriorityComparisonShadow.Dispose();
                cancelPriorityComparisonShadow = null;
            }

            if (trimPriorityComparisonShadow != null)
            {
                SetConcludePriorityComparison_(IntPtr.Zero);
                trimPriorityComparisonShadow.Dispose();
                trimPriorityComparisonShadow = null;
            }

            if (compressPriorityComparisonShadow != null)
            {
                SetCompressPriorityComparison_(IntPtr.Zero);
                compressPriorityComparisonShadow.Dispose();
                compressPriorityComparisonShadow = null;
            }

            if (trimPriorityComparisonShadow != null)
            {
                SetConcludePriorityComparison_(IntPtr.Zero);
                trimPriorityComparisonShadow.Dispose();
                trimPriorityComparisonShadow = null;
            }

            base.Dispose(disposing);
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        protected override void Dispose(bool disposing)
        {
            if (shadowEventHandler != null)
            {
                SetManagerEventHandler_(IntPtr.Zero);
                shadowEventHandler.Dispose();
                shadowEventHandler = null;
            }

            if (cancelPriorityComparisonShadow != null)
            {
                SetCancelPriorityComparison_(IntPtr.Zero);
                cancelPriorityComparisonShadow.Dispose();
                cancelPriorityComparisonShadow = null;
            }

            if (trimPriorityComparisonShadow != null)
            {
                SetConcludePriorityComparison_(IntPtr.Zero);
                trimPriorityComparisonShadow.Dispose();
                trimPriorityComparisonShadow = null;
            }

            if (compressPriorityComparisonShadow != null)
            {
                SetCompressPriorityComparison_(IntPtr.Zero);
                compressPriorityComparisonShadow.Dispose();
                compressPriorityComparisonShadow = null;
            }

            if (trimPriorityComparisonShadow != null)
            {
                SetConcludePriorityComparison_(IntPtr.Zero);
                trimPriorityComparisonShadow.Dispose();
                trimPriorityComparisonShadow = null;
            }

            base.Dispose(disposing);
        }