Skip to content

Commit

Permalink
Fixes gui-cs#2944. TreeView ColorGetter not disposing sometimes cause…
Browse files Browse the repository at this point in the history
…s unit test error.
  • Loading branch information
BDisp committed Oct 30, 2023
1 parent aa8b952 commit 26d78d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Terminal.Gui/Views/TreeView/TreeView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,13 @@ internal void OnDrawLine (DrawTreeViewLineEventArgs<T> e)
DrawLine?.Invoke (this, e);
}

/// <inheritdoc/>
protected override void Dispose (bool disposing)
{
base.Dispose (disposing);

ColorGetter = null;
}
}
class TreeSelection<T> where T : class {

Expand Down

0 comments on commit 26d78d8

Please sign in to comment.