Skip to content

Commit 721a012

Browse files
committed
Dispose TempFile in DisambiguateTests
1 parent afec695 commit 721a012

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Src/Utilities/pcpatrflex/DisambiguateInFLExDB/DisambiguateInFLExDBTests/DisambiguateTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public override void FixtureSetup()
4141
if (String.IsNullOrEmpty(SavedTestFile))
4242
SavedTestFile = kTestFileB4;
4343

44-
var temp = new IO.TempFile(Path.Combine(Path.GetTempPath(), TestFile), false);
44+
using var temp = new IO.TempFile(Path.Combine(Path.GetTempPath(), TestFile), false);
4545
TempTestFile = temp.Path;
4646
File.Copy(Path.Combine(TestDataDir, SavedTestFile), TempTestFile, true);
4747
ProjId = new ProjectId(TempTestFile);

0 commit comments

Comments
 (0)