Fixed git buffer not being freed in parsing loop.

This commit is contained in:
WrinklyNinja
2014-08-27 08:02:49 +01:00
parent f34e6edb77
commit 93a1a36be2
+2
View File
@@ -412,10 +412,12 @@ namespace loot {
BOOST_LOG_TRIVIAL(trace) << "Freeing pointers.";
git_reference_free(git.ref);
git_object_free(git.obj);
git_buf_free(&git.buf);
git_commit_free(git.commit);
git.ref = nullptr;
git.obj = nullptr;
git.commit = nullptr;
git.buf = { 0 };
//Now try parsing the masterlist.
BOOST_LOG_TRIVIAL(debug) << "Testing masterlist parsing.";