Skip to content

Commit 6283db4

Browse files
committed
fix(core): dispose invalid repositories before removing them
1 parent d588f9b commit 6283db4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Packages/io.savolainen.unitygit/Core/Services/StatusService.cs

+3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ private void RemoveInvalidRepositories(IList<IRepository> repositories)
8888
}
8989

9090
foreach (var index in indexesToRemove)
91+
{
92+
repositories[index].Dispose();
9193
repositories.RemoveAt(index);
94+
}
9295
}
9396
}
9497

0 commit comments

Comments
 (0)