Fixes #2944. TreeView ColorGetter not disposing sometimes causes unit test error. (#2945)

This commit is contained in:
BDisp
2023-10-30 20:36:03 +00:00
committed by GitHub
parent aa8b952509
commit 81ea4e8ec7

View File

@@ -1433,6 +1433,13 @@ namespace Terminal.Gui {
DrawLine?.Invoke (this, e);
}
/// <inheritdoc/>
protected override void Dispose (bool disposing)
{
base.Dispose (disposing);
ColorGetter = null;
}
}
class TreeSelection<T> where T : class {