internal override void OnDispose(IntPtr nativePtr) { if (m_OnJsDialog != null) { m_OnJsDialog = null; CfxApi.cfx_jsdialog_handler_set_managed_callback(NativePtr, 0, IntPtr.Zero); } if (m_OnBeforeUnloadDialog != null) { m_OnBeforeUnloadDialog = null; CfxApi.cfx_jsdialog_handler_set_managed_callback(NativePtr, 1, IntPtr.Zero); } if (m_OnResetDialogState != null) { m_OnResetDialogState = null; CfxApi.cfx_jsdialog_handler_set_managed_callback(NativePtr, 2, IntPtr.Zero); } if (m_OnDialogClosed != null) { m_OnDialogClosed = null; CfxApi.cfx_jsdialog_handler_set_managed_callback(NativePtr, 3, IntPtr.Zero); } base.OnDispose(nativePtr); }
internal override void OnDispose(IntPtr nativePtr) { if(m_OnJsDialog != null) { m_OnJsDialog = null; CfxApi.cfx_jsdialog_handler_set_managed_callback(NativePtr, 0, IntPtr.Zero); } if(m_OnBeforeUnloadDialog != null) { m_OnBeforeUnloadDialog = null; CfxApi.cfx_jsdialog_handler_set_managed_callback(NativePtr, 1, IntPtr.Zero); } if(m_OnResetDialogState != null) { m_OnResetDialogState = null; CfxApi.cfx_jsdialog_handler_set_managed_callback(NativePtr, 2, IntPtr.Zero); } if(m_OnDialogClosed != null) { m_OnDialogClosed = null; CfxApi.cfx_jsdialog_handler_set_managed_callback(NativePtr, 3, IntPtr.Zero); } base.OnDispose(nativePtr); }