public void OnDisable()
 {
     SaveViewSettings();
     if (m_TreeView != null)
     {
         if (m_TreeView.multiColumnHeader != null)
         {
             m_TreeView.multiColumnHeader.visibleColumnsChanged -= OnMultiColumnHeaderChanged;
             m_TreeView.multiColumnHeader.sortingChanged        -= OnMultiColumnHeaderChanged;
         }
     }
     if (m_DetailedObjectsView != null)
     {
         m_DetailedObjectsView.OnDisable();
     }
     if (m_DetailedCallsView != null)
     {
         m_DetailedCallsView.OnDisable();
     }
 }
 public override void OnDisable()
 {
     base.OnDisable();
     SaveViewSettings();
     m_ProfilerWindow.frameDataViewAboutToBeDisposed -= OnFrameDataViewAboutToBeDisposed;
     if (m_TreeView != null)
     {
         if (m_TreeView.multiColumnHeader != null)
         {
             m_TreeView.multiColumnHeader.visibleColumnsChanged -= OnMultiColumnHeaderChanged;
             m_TreeView.multiColumnHeader.sortingChanged        -= OnMultiColumnHeaderChanged;
         }
     }
     if (m_DetailedObjectsView != null)
     {
         m_DetailedObjectsView.OnDisable();
     }
     if (m_DetailedCallsView != null)
     {
         m_DetailedCallsView.OnDisable();
     }
 }