Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/21/13 09:05:57 (11 years ago)
Author:
ascheibe
Message:

#2005 fixed memory leaks in GraphVisualization and Docking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UnloadJobs/HeuristicLab.Operators.Views.GraphVisualization.Views/3.3/OperatorGraphView.cs

    r8860 r9174  
    319319      }
    320320    }
     321
     322    /// <summary>
     323    /// Clean up any resources being used.
     324    /// </summary>
     325    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
     326    protected override void Dispose(bool disposing) {
     327      if (disposing && (components != null)) {
     328        this.graphVisualizationInfoView.Controller.OnShowContextMenu -= new EventHandler<EntityMenuEventArgs>(Controller_OnShowContextMenu);
     329        this.graphVisualizationInfoView.Controller.Model.Selection.OnNewSelection -= new EventHandler(Controller_SelectionChanged);
     330        this.graphVisualizationInfoView.Controller.OnMouseDown -= new EventHandler<MouseEventArgs>(Controller_OnMouseDown);
     331        this.graphVisualizationInfoView.Controller.ParentControl.MouseDown -= new MouseEventHandler(ParentControl_MouseDown);
     332        this.graphVisualizationInfoView.Controller.ParentControl.MouseUp -= new MouseEventHandler(ParentControl_MouseUp);
     333        foreach (ITool tool in this.graphVisualizationInfoView.Controller.Tools) {
     334          tool.OnToolActivate -= new EventHandler<ToolEventArgs>(tool_OnToolActivate);
     335          tool.OnToolDeactivate -= new EventHandler<ToolEventArgs>(tool_OnToolDeactivate);
     336        }
     337        detailsViewHost.Content = null;
     338        components.Dispose();
     339      }
     340      base.Dispose(disposing);
     341    }
    321342  }
    322343}
Note: See TracChangeset for help on using the changeset viewer.