diff --git a/Source/OxyPlot.Xamarin.Mac/PlotView.cs b/Source/OxyPlot.Xamarin.Mac/PlotView.cs index d25084f..f318e3a 100644 --- a/Source/OxyPlot.Xamarin.Mac/PlotView.cs +++ b/Source/OxyPlot.Xamarin.Mac/PlotView.cs @@ -74,6 +74,20 @@ private void Initialize() { this.WantsLayer = true; } + /// + /// Dispose the instance. + /// + /// Is the instance disposing. + protected override void Dispose(bool disposing) + { + if (disposing) + { + this.Model = null; + } + + base.Dispose(disposing); + } + /// /// Gets or sets the to show in the view. ///