all repos — mgba @ 82f503bc4e8673d06ab49ae91d7cb781557efe57

mGBA Game Boy Advance Emulator

GBA Cheats: Fix uninitialized memory getting freed when saving
Jeffrey Pfau jeffrey@endrift.com
Tue, 27 Sep 2016 10:20:03 -0700
commit

82f503bc4e8673d06ab49ae91d7cb781557efe57

parent

559c3212fd9ff931f55b46849dbd07570949b7b8

2 files changed, 4 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -23,6 +23,7 @@ - GB: Initialize audio properly

- GB MBC: Fix RTC access when no save file is loaded - GB: Properly clear KEY1 bit 0 when switching speeds - LR35902: Fix core never exiting with certain event patterns + - GBA Cheats: Fix uninitialized memory getting freed when saving Misc: - All: Only update version info if needed - FFmpeg: Encoding cleanup
M src/gba/cheats.csrc/gba/cheats.c

@@ -300,14 +300,16 @@ free(*StringListGetPointer(directives, d));

} StringListClear(directives); - char** directive = StringListAppend(directives); + char** directive; switch (cheats->gsaVersion) { case 1: case 2: + directive = StringListAppend(directives); *directive = strdup("GSAv1"); break; case 3: case 4: + directive = StringListAppend(directives); *directive = strdup("PARv3"); break; }