mirror of https://github.com/mgba-emu/mgba.git
Core: Fix memory leak in opening games from the library
This commit is contained in:
parent
3276ebcd10
commit
3d72ada282
1
CHANGES
1
CHANGES
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue