From f0872473ce3732ad892aafcc82874f2fbe9381f2 Mon Sep 17 00:00:00 2001 From: Tig Kindel Date: Tue, 17 Oct 2023 12:17:20 -0400 Subject: [PATCH] Cleans up dim/pos objs in dispose. See #2914. --- Terminal.Gui/View/View.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Terminal.Gui/View/View.cs b/Terminal.Gui/View/View.cs index 62b1635d5..0d3b360c2 100644 --- a/Terminal.Gui/View/View.cs +++ b/Terminal.Gui/View/View.cs @@ -503,6 +503,11 @@ namespace Terminal.Gui { Padding?.Dispose (); Padding = null; + _height = null; + _width = null; + _x = null; + _y = null; + for (var i = InternalSubviews.Count - 1; i >= 0; i--) { var subview = InternalSubviews [i]; Remove (subview);