diff --git a/src/platform/sdl/main.c b/src/platform/sdl/main.c index 425612def..5d85523bd 100644 --- a/src/platform/sdl/main.c +++ b/src/platform/sdl/main.c @@ -299,6 +299,7 @@ int mSDLRunGB(struct mSDLRenderer* renderer, struct GBAArguments* args) { renderer->audio.psg = 0; GBSDLResumeAudio(&renderer->audio); renderer->runloop(renderer, &thread); + mCoreThreadJoin(&thread); renderer->core->unloadROM(renderer->core); return 0; }