mirror of https://github.com/mgba-emu/mgba.git
GB: Fix memory leak unloading masked savedata
This commit is contained in:
parent
b966d71a2c
commit
ba0b7d9157
|
@ -312,6 +312,7 @@ void GBUnloadROM(struct GB* gb) {
|
||||||
gb->isPristine = false;
|
gb->isPristine = false;
|
||||||
|
|
||||||
gb->sramMaskWriteback = false;
|
gb->sramMaskWriteback = false;
|
||||||
|
GBSavedataUnmask(gb);
|
||||||
GBSramDeinit(gb);
|
GBSramDeinit(gb);
|
||||||
if (gb->sramRealVf) {
|
if (gb->sramRealVf) {
|
||||||
gb->sramRealVf->close(gb->sramRealVf);
|
gb->sramRealVf->close(gb->sramRealVf);
|
||||||
|
|
Loading…
Reference in New Issue