mirror of https://github.com/mgba-emu/mgba.git
Add some missing cleanup
This commit is contained in:
parent
c9ec91b75f
commit
a14ce5c815
|
@ -357,6 +357,11 @@ void GBAThreadJoin(struct GBAThread* threadContext) {
|
|||
threadContext->patch->close(threadContext->patch);
|
||||
threadContext->patch = 0;
|
||||
}
|
||||
|
||||
if (threadContext->gamedir) {
|
||||
threadContext->gamedir->close(threadContext->gamedir);
|
||||
threadContext->gamedir = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void GBAThreadInterrupt(struct GBAThread* threadContext) {
|
||||
|
|
|
@ -79,6 +79,7 @@ bool _vfzClose(struct VFile* vf) {
|
|||
if (zip_fclose(vfz->zf) < 0) {
|
||||
return false;
|
||||
}
|
||||
free(vfz->buffer);
|
||||
free(vfz);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue