Skip to content

Commit

Permalink
fix g_error freeing when err is nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandlo committed Oct 23, 2022
1 parent 176dfcd commit e8893fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control/latex/LatexGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ auto LatexGenerator::asyncRun(const fs::path& texDir, const std::string& texFile
}

g_strfreev(argv);
g_error_free(err);
g_clear_error(&err);
return res;
}
g_free(argv[0]);
Expand Down

0 comments on commit e8893fd

Please sign in to comment.