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

This commit is contained in:
Tig Kindel
2023-10-17 12:17:20 -04:00
parent faff1ecdc0
commit f0872473ce

View File

@@ -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);