mirror of https://github.com/mgba-emu/mgba.git
Core: Fix crash when exiting game with cheats loaded
This commit is contained in:
parent
3f044a5791
commit
f3ec9db9d7
1
CHANGES
1
CHANGES
|
@ -33,6 +33,7 @@ Other fixes:
|
||||||
- Core: Fix crashes if core directories aren't set
|
- Core: Fix crashes if core directories aren't set
|
||||||
- Qt: Fix menu bar staying hidden in full screen (fixes mgba.io/i/317)
|
- Qt: Fix menu bar staying hidden in full screen (fixes mgba.io/i/317)
|
||||||
- GB SIO: Fix lockstep failing games aren't reloaded
|
- GB SIO: Fix lockstep failing games aren't reloaded
|
||||||
|
- Core: Fix crash when exiting game with cheats loaded
|
||||||
Misc:
|
Misc:
|
||||||
- GBA Savedata: EEPROM performance fixes
|
- GBA Savedata: EEPROM performance fixes
|
||||||
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
|
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
|
||||||
|
|
|
@ -83,11 +83,11 @@ void mCheatSetInit(struct mCheatSet* set, const char* name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void mCheatSetDeinit(struct mCheatSet* set) {
|
void mCheatSetDeinit(struct mCheatSet* set) {
|
||||||
mCheatListDeinit(&set->list);
|
|
||||||
size_t i;
|
size_t i;
|
||||||
for (i = 0; i < StringListSize(&set->lines); ++i) {
|
for (i = 0; i < StringListSize(&set->lines); ++i) {
|
||||||
free(*StringListGetPointer(&set->lines, i));
|
free(*StringListGetPointer(&set->lines, i));
|
||||||
}
|
}
|
||||||
|
mCheatListDeinit(&set->list);
|
||||||
if (set->name) {
|
if (set->name) {
|
||||||
free(set->name);
|
free(set->name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue