summaryrefslogtreecommitdiff
path: root/src/git2
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-03-01 01:37:28 +0200
committerVicent Marti <tanoku@gmail.com>2011-03-03 20:23:53 +0200
commit584f49a5ceff463581f7f1b8bc23880dabca27ac (patch)
treea57c65fd2e530c2b096285c8625d62ea13685451 /src/git2
parent971c90befe4dfac4c235fa59d65f7e652fc27e1d (diff)
downloadlibgit2-584f49a5ceff463581f7f1b8bc23880dabca27ac.tar.gz
Fix several issues with refcounting
- Added several missing reference increases - Add new destructor to the repository that does not GC the objects Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/git2')
-rw-r--r--src/git2/repository.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/git2/repository.h b/src/git2/repository.h
index dbb9dddef..5327f8c58 100644
--- a/src/git2/repository.h
+++ b/src/git2/repository.h
@@ -158,6 +158,9 @@ GIT_EXTERN(int) git_repository_index(git_index **index, git_repository *repo);
*/
GIT_EXTERN(void) git_repository_free(git_repository *repo);
+
+GIT_EXTERN(void) git_repository_free__no_gc(git_repository *repo);
+
/**
* Creates a new Git repository in the given folder.
*