Пример #1
0
 internal void Free()
 {
     if (before_closure != null)
     {
         before_closure.Dispose();
     }
     if (after_closure != null)
     {
         after_closure.Dispose();
     }
     GC.SuppressFinalize(this);
 }
Пример #2
0
        static void NotifyCallback(IntPtr data, IntPtr raw_closure)
        {
            SignalClosure closure = closures [raw_closure] as SignalClosure;

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