Skip to content

Commit

Permalink
Dispose of FocusBox if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeOliver28 committed Apr 26, 2024
1 parent c1a37e5 commit 8e70966
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Src/LexText/Interlinear/InterlinDocForAnalysis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,11 @@ internal FocusBoxController FocusBox

internal override void CreateFocusBox()
{
if (ExistingFocusBox != null)
{
ExistingFocusBox.Dispose();
}

ExistingFocusBox = CreateFocusBoxInternal();
}

Expand Down

0 comments on commit 8e70966

Please sign in to comment.