浏览代码

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

Tig Kindel 1 年之前
父节点
当前提交
f0872473ce
共有 1 个文件被更改,包括 5 次插入0 次删除
  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);