Core: Fix memory leak in opening games from the library

This commit is contained in:
Vicki Pfau 2021-04-25 16:55:04 -07:00
parent 73a1416565
commit e4b25fc16b
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@ Features:
- Tool for converting scanned pictures of e-Reader cards to raw dotcode data
- Cheat code support in homebrew ports
Other fixes:
- Core: Fix memory leak in opening games from the library
- Qt: Fix infrequent deadlock when using sync to video
Misc:
- Qt: Rearrange menus some

View File

@ -456,6 +456,11 @@ struct VFile* mLibraryOpenVFile(struct mLibrary* library, const struct mLibraryE
break;
}
}
for (i = 0; i < mLibraryListingSize(&entries); ++i) {
struct mLibraryEntry* e = mLibraryListingGetPointer(&entries, i);
mLibraryEntryFree(e);
}
mLibraryListingDeinit(&entries);
return vf;
}