Browse Source

Cleans up dim/pos objs in dispose. See #2914.

Tig Kindel 1 year ago
parent
commit
f0872473ce
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Terminal.Gui/View/View.cs

+ 5 - 0
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);