internal override void OnDispose(IntPtr nativePtr)
 {
     if (m_OnAddressChange != null)
     {
         m_OnAddressChange = null;
         CfxApi.DisplayHandler.cfx_display_handler_set_callback(NativePtr, 0, IntPtr.Zero);
     }
     if (m_OnTitleChange != null)
     {
         m_OnTitleChange = null;
         CfxApi.DisplayHandler.cfx_display_handler_set_callback(NativePtr, 1, IntPtr.Zero);
     }
     if (m_OnFaviconUrlchange != null)
     {
         m_OnFaviconUrlchange = null;
         CfxApi.DisplayHandler.cfx_display_handler_set_callback(NativePtr, 2, IntPtr.Zero);
     }
     if (m_OnFullscreenModeChange != null)
     {
         m_OnFullscreenModeChange = null;
         CfxApi.DisplayHandler.cfx_display_handler_set_callback(NativePtr, 3, IntPtr.Zero);
     }
     if (m_OnTooltip != null)
     {
         m_OnTooltip = null;
         CfxApi.DisplayHandler.cfx_display_handler_set_callback(NativePtr, 4, IntPtr.Zero);
     }
     if (m_OnStatusMessage != null)
     {
         m_OnStatusMessage = null;
         CfxApi.DisplayHandler.cfx_display_handler_set_callback(NativePtr, 5, IntPtr.Zero);
     }
     if (m_OnConsoleMessage != null)
     {
         m_OnConsoleMessage = null;
         CfxApi.DisplayHandler.cfx_display_handler_set_callback(NativePtr, 6, IntPtr.Zero);
     }
     if (m_OnAutoResize != null)
     {
         m_OnAutoResize = null;
         CfxApi.DisplayHandler.cfx_display_handler_set_callback(NativePtr, 7, IntPtr.Zero);
     }
     base.OnDispose(nativePtr);
 }
示例#2
0
 internal override void OnDispose(IntPtr nativePtr)
 {
     if(m_OnAddressChange != null) {
         m_OnAddressChange = null;
         CfxApi.cfx_display_handler_set_managed_callback(NativePtr, 0, IntPtr.Zero);
     }
     if(m_OnTitleChange != null) {
         m_OnTitleChange = null;
         CfxApi.cfx_display_handler_set_managed_callback(NativePtr, 1, IntPtr.Zero);
     }
     if(m_OnFaviconUrlchange != null) {
         m_OnFaviconUrlchange = null;
         CfxApi.cfx_display_handler_set_managed_callback(NativePtr, 2, IntPtr.Zero);
     }
     if(m_OnFullscreenModeChange != null) {
         m_OnFullscreenModeChange = null;
         CfxApi.cfx_display_handler_set_managed_callback(NativePtr, 3, IntPtr.Zero);
     }
     if(m_OnTooltip != null) {
         m_OnTooltip = null;
         CfxApi.cfx_display_handler_set_managed_callback(NativePtr, 4, IntPtr.Zero);
     }
     if(m_OnStatusMessage != null) {
         m_OnStatusMessage = null;
         CfxApi.cfx_display_handler_set_managed_callback(NativePtr, 5, IntPtr.Zero);
     }
     if(m_OnConsoleMessage != null) {
         m_OnConsoleMessage = null;
         CfxApi.cfx_display_handler_set_managed_callback(NativePtr, 6, IntPtr.Zero);
     }
     base.OnDispose(nativePtr);
 }