internal override void OnDispose(IntPtr nativePtr) { if (m_Get != null) { m_Get = null; CfxApi.V8Accessor.cfx_v8accessor_set_managed_callback(NativePtr, 0, IntPtr.Zero); } if (m_Set != null) { m_Set = null; CfxApi.V8Accessor.cfx_v8accessor_set_managed_callback(NativePtr, 1, IntPtr.Zero); } base.OnDispose(nativePtr); }
internal override void OnDispose(IntPtr nativePtr) { if(m_Get != null) { m_Get = null; CfxApi.cfx_v8accessor_set_managed_callback(NativePtr, 0, IntPtr.Zero); } if(m_Set != null) { m_Set = null; CfxApi.cfx_v8accessor_set_managed_callback(NativePtr, 1, IntPtr.Zero); } base.OnDispose(nativePtr); }