all repos — mgba @ a14ce5c8151fcbb8d54ce839a7faca54763fe895

mGBA Game Boy Advance Emulator

Add some missing cleanup
Jeffrey Pfau jeffrey@endrift.com
Fri, 18 Jul 2014 00:52:22 -0700
commit

a14ce5c8151fcbb8d54ce839a7faca54763fe895

parent

c9ec91b75fa4cb4f1042e930d14dc43bf680df85

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-thread.csrc/gba/gba-thread.c

@@ -357,6 +357,11 @@ if (threadContext->patch) {

threadContext->patch->close(threadContext->patch); threadContext->patch = 0; } + + if (threadContext->gamedir) { + threadContext->gamedir->close(threadContext->gamedir); + threadContext->gamedir = 0; + } } void GBAThreadInterrupt(struct GBAThread* threadContext) {
M src/util/vfs-zip.csrc/util/vfs-zip.c

@@ -79,6 +79,7 @@ struct VFileZip* vfz = (struct VFileZip*) vf;

if (zip_fclose(vfz->zf) < 0) { return false; } + free(vfz->buffer); free(vfz); return true; }