Fix memory leak

This commit is contained in:
LoveSy 2020-12-03 18:56:51 +08:00 committed by solohsu
parent d49dc4bb17
commit 6a9632b89c
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ namespace edxp {
}
void Context::PreLoadDex(const std::vector<fs::path> &dex_paths) {
if (LIKELY(!dexes.empty())) return;
for (const auto &path: dex_paths) {
std::ifstream is(path, std::ios::binary);
if (!is.good()) {