all repos — mgba @ ba0b7d9157aa1120f3b8340bc139d92772623a4f

mGBA Game Boy Advance Emulator

GB: Fix memory leak unloading masked savedata
Vicki Pfau vi@endrift.com
Thu, 25 Feb 2021 23:43:04 -0800
commit

ba0b7d9157aa1120f3b8340bc139d92772623a4f

parent

b966d71a2cdd7343f4265c1cc60fe1324f046865

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/gb/gb.csrc/gb/gb.c

@@ -312,6 +312,7 @@ gb->memory.mbcType = GB_MBC_AUTODETECT;

gb->isPristine = false; gb->sramMaskWriteback = false; + GBSavedataUnmask(gb); GBSramDeinit(gb); if (gb->sramRealVf) { gb->sramRealVf->close(gb->sramRealVf);