Add some missing cleanup
Jeffrey Pfau jeffrey@endrift.com
Fri, 18 Jul 2014 00:52:22 -0700
2 files changed,
6 insertions(+),
0 deletions(-)
M
src/gba/gba-thread.c
→
src/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.c
→
src/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; }