Skip to content

Commit cc6c6e7

Browse files
committed
Dispose _mostRecentCorrectionsByFile
1 parent cecc0be commit cc6c6e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/PowerShellEditorServices/Services/Analysis/AnalysisService.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,12 @@ protected virtual void Dispose(bool disposing)
497497
{
498498
_analysisEngineLazy.Value.Dispose();
499499
}
500+
501+
foreach (CorrectionTableEntry entry in _mostRecentCorrectionsByFile.Values)
502+
{
503+
entry.Dispose();
504+
}
505+
_mostRecentCorrectionsByFile.Clear();
500506
}
501507

502508
disposedValue = true;

0 commit comments

Comments
 (0)