Explorar o código

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

Tig Kindel hai 1 ano
pai
achega
f0872473ce
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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);