diff --git a/Terminal.Gui/View/View.cs b/Terminal.Gui/View/View.cs index 07235e638..e3b22cebe 100644 --- a/Terminal.Gui/View/View.cs +++ b/Terminal.Gui/View/View.cs @@ -514,9 +514,23 @@ public partial class View : Responder, ISupportInitializeNotification /// public override string ToString () { return $"{GetType ().Name}({Id}){Frame}"; } - /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// + /// Subviews added to this view via have their lifetime owned by this view and will + /// dispose them. To prevent this, and have the creator of the Subview instance handle disposal, use to remove + /// the subview first. + /// + /// + /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and + /// unmanaged resources can be disposed. If disposing equals false, the method has been called by the runtime from + /// inside the finalizer, and you should not reference other objects. Only unmanaged resources can be disposed. + /// + /// + /// protected override void Dispose (bool disposing) { + // BUGBUG: We should only dispose these objects if disposing == true LineCanvas.Dispose (); DisposeAdornments ();