diff options
author | nulltoken <emeric.fermas@gmail.com> | 2014-06-07 12:01:06 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2014-06-07 12:01:06 +0400 |
commit | fd9a635642ca666ba961f88af0cd40315931bd0c (patch) | |
tree | dba8c6dbc879ff3d487563dec0e91d8e27b5989f | |
parent | e1b6166af04a346baac90c809ea79b7b753586b1 (diff) |
Prevent memory leak on branch removal
Actually, git_branch_delete() no longer frees the reference handle for
the caller. We can now let the handle take care of this when it's
disposed.
-rw-r--r-- | LibGit2Sharp/Core/Proxy.cs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/LibGit2Sharp/Core/Proxy.cs b/LibGit2Sharp/Core/Proxy.cs index feb66d6c..00d24d6c 100644 --- a/LibGit2Sharp/Core/Proxy.cs +++ b/LibGit2Sharp/Core/Proxy.cs @@ -163,7 +163,6 @@ namespace LibGit2Sharp.Core { int res = NativeMethods.git_branch_delete(reference); Ensure.ZeroResult(res); - reference.SetHandleAsInvalid(); } } |