Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2014-06-07 12:01:06 +0400
committernulltoken <emeric.fermas@gmail.com>2014-06-07 12:01:06 +0400
commitfd9a635642ca666ba961f88af0cd40315931bd0c (patch)
treedba8c6dbc879ff3d487563dec0e91d8e27b5989f
parente1b6166af04a346baac90c809ea79b7b753586b1 (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.cs1
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();
}
}