Exemple #1
0
 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);
 }
Exemple #2
0
 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);
 }