//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- //Unreference this instance from Registry.
- Registry.Unregister(this);
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
{
swigCMemOwn = false;
+
+ //Unreference this instance from Registry.
+ Registry.Unregister(this);
+
NDalicPINVOKE.delete_BaseHandle(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);