mirror of https://github.com/mgba-emu/mgba.git
Core: Fix memory leak
This commit is contained in:
parent
f3c26add07
commit
7b4850024a
|
@ -459,6 +459,9 @@ bool mCoreSaveStateNamed(struct mCore* core, struct VFile* vf, int flags) {
|
|||
else {
|
||||
bool success = _savePNGState(core, vf, &extdata);
|
||||
mStateExtdataDeinit(&extdata);
|
||||
if (cheatVf) {
|
||||
cheatVf->close(cheatVf);
|
||||
}
|
||||
return success;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue