Properly dispose Repository member.
This commit is contained in:
committed by
Sean M. Collins
parent
82ae6e6f3d
commit
6c663af109
@@ -28,6 +28,11 @@ namespace Sep.Git.Tfs.Core
|
||||
_repository = new LibGit2Sharp.Repository(GitDir);
|
||||
}
|
||||
|
||||
~GitRepository()
|
||||
{
|
||||
_repository.Dispose();
|
||||
}
|
||||
|
||||
public string GitDir { get; set; }
|
||||
public string WorkingCopyPath { get; set; }
|
||||
public string WorkingCopySubdir { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user