GB: Fix memory leak unloading masked savedata
Vicki Pfau vi@endrift.com
Thu, 25 Feb 2021 23:43:04 -0800
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/gb/gb.c
→
src/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);