diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-03-29 17:49:55 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-03-29 17:49:55 +0400 |
commit | 6cd37c3cd5cff68e55eba177dfb1e2c0fb51ab6e (patch) | |
tree | 25fcd2097abbfb3a8add981d65476632d7fcbb5b /LibGit2Sharp/Core/Handles | |
parent | f8e97d4fdcbd6ead85a1e390754eed1934b58ef6 (diff) |
Add ReferenceSafeHandle type
Diffstat (limited to 'LibGit2Sharp/Core/Handles')
-rw-r--r-- | LibGit2Sharp/Core/Handles/ReferenceSafeHandle.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/LibGit2Sharp/Core/Handles/ReferenceSafeHandle.cs b/LibGit2Sharp/Core/Handles/ReferenceSafeHandle.cs new file mode 100644 index 00000000..e6baf424 --- /dev/null +++ b/LibGit2Sharp/Core/Handles/ReferenceSafeHandle.cs @@ -0,0 +1,11 @@ +namespace LibGit2Sharp.Core.Handles +{ + internal class ReferenceSafeHandle : SafeHandleBase + { + protected override bool ReleaseHandle() + { + NativeMethods.git_reference_free(handle); + return true; + } + } +} |