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
73a1416565
commit
e4b25fc16b
1
CHANGES
1
CHANGES
|
@ -3,6 +3,7 @@ Features:
|
||||||
- Tool for converting scanned pictures of e-Reader cards to raw dotcode data
|
- Tool for converting scanned pictures of e-Reader cards to raw dotcode data
|
||||||
- Cheat code support in homebrew ports
|
- Cheat code support in homebrew ports
|
||||||
Other fixes:
|
Other fixes:
|
||||||
|
- Core: Fix memory leak in opening games from the library
|
||||||
- Qt: Fix infrequent deadlock when using sync to video
|
- Qt: Fix infrequent deadlock when using sync to video
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Rearrange menus some
|
- Qt: Rearrange menus some
|
||||||
|
|
|
@ -456,6 +456,11 @@ struct VFile* mLibraryOpenVFile(struct mLibrary* library, const struct mLibraryE
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for (i = 0; i < mLibraryListingSize(&entries); ++i) {
|
||||||
|
struct mLibraryEntry* e = mLibraryListingGetPointer(&entries, i);
|
||||||
|
mLibraryEntryFree(e);
|
||||||
|
}
|
||||||
|
mLibraryListingDeinit(&entries);
|
||||||
return vf;
|
return vf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue