mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fixed crash at end of masterlist update.
Was due to trying to get the repo path from a closed repo handle.
This commit is contained in:
+10
-2
@@ -68,10 +68,18 @@ namespace loot {
|
||||
buf({0}) {}
|
||||
|
||||
~git_handler() {
|
||||
string path(git_repository_path(repo));
|
||||
string path;
|
||||
if (repo != nullptr)
|
||||
path = git_repository_path(repo);
|
||||
|
||||
free();
|
||||
|
||||
FixRepoPermissions(path);
|
||||
if (!path.empty()) {
|
||||
try {
|
||||
FixRepoPermissions(path);
|
||||
}
|
||||
catch (exception&) {}
|
||||
}
|
||||
}
|
||||
|
||||
void free() {
|
||||
|
||||
Reference in New Issue
Block a user