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 3276ebcd10
commit 3d72ada282
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,6 @@
0.9.2: (Future)
Other fixes:
- Core: Fix memory leak in opening games from the library
- Qt: Fix infrequent deadlock when using sync to video
0.9.1: (2021-04-18)

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;
}