Index: Core/Plugins/src/Core.Plugins.OxyPlot/Legend/LegendView.Designer.cs =================================================================== diff -u -rcf6a76a5bd319b58990949132b0fbf6fe60a97e4 -rbdcb078db8fc5402a781ea0ea3e8e666ff2c4bf3 --- Core/Plugins/src/Core.Plugins.OxyPlot/Legend/LegendView.Designer.cs (.../LegendView.Designer.cs) (revision cf6a76a5bd319b58990949132b0fbf6fe60a97e4) +++ Core/Plugins/src/Core.Plugins.OxyPlot/Legend/LegendView.Designer.cs (.../LegendView.Designer.cs) (revision bdcb078db8fc5402a781ea0ea3e8e666ff2c4bf3) @@ -9,19 +9,6 @@ /// private System.ComponentModel.IContainer components = null; - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - #region Component Designer generated code /// Index: Core/Plugins/src/Core.Plugins.OxyPlot/Legend/LegendView.cs =================================================================== diff -u -r5d0ea46dea2c2d063c7fb5c58bed3be219be1c85 -rbdcb078db8fc5402a781ea0ea3e8e666ff2c4bf3 --- Core/Plugins/src/Core.Plugins.OxyPlot/Legend/LegendView.cs (.../LegendView.cs) (revision 5d0ea46dea2c2d063c7fb5c58bed3be219be1c85) +++ Core/Plugins/src/Core.Plugins.OxyPlot/Legend/LegendView.cs (.../LegendView.cs) (revision bdcb078db8fc5402a781ea0ea3e8e666ff2c4bf3) @@ -104,6 +104,18 @@ } } + protected override void Dispose(bool disposing) + { + Data = null; + + if (disposing && (components != null)) + { + components.Dispose(); + } + + base.Dispose(disposing); + } + # region ChartData private void PointDataOnNodeChecked(PointData pointData, object parentData)