cairo_surface_destroy() приватный Метод

private cairo_surface_destroy ( IntPtr surface ) : void
surface IntPtr
Результат void
Пример #1
0
		protected virtual void Dispose (bool disposing)
		{
			if (!disposing || CairoDebug.Enabled)
				CairoDebug.OnDisposed<Surface> (handle, disposing);

			if (handle == IntPtr.Zero)
				return;

			NativeMethods.cairo_surface_destroy (handle);
			handle = IntPtr.Zero;
		}
        protected virtual void Dispose(bool disposing)
        {
            if (surface == IntPtr.Zero)
            {
                return;
            }

            lock (surfaces.SyncRoot)
                surfaces.Remove(surface);

            NativeMethods.cairo_surface_destroy(surface);
            surface = IntPtr.Zero;
        }