Fixed threaded libgit2 crash.

This commit is contained in:
Oliver Hamlet
2014-12-21 21:04:09 +00:00
parent f61575a775
commit 4f440b5101
+4 -1
View File
@@ -43,7 +43,10 @@ namespace loot {
struct git_handler {
public:
git_handler() : repo(nullptr), remote(nullptr), cfg(nullptr), obj(nullptr), commit(nullptr), ref(nullptr), ref2(nullptr), sig(nullptr), blob(nullptr), merge_head(nullptr) {}
git_handler() : repo(nullptr), remote(nullptr), cfg(nullptr), obj(nullptr), commit(nullptr), ref(nullptr), ref2(nullptr), sig(nullptr), blob(nullptr), merge_head(nullptr) {
// Init threading system and OpenSSL (for Linux builds).
git_threads_init();
}
~git_handler() {
git_commit_free(commit);