SDL: Add missing call to mCoreThreadJoin

This commit is contained in:
Jeffrey Pfau 2016-02-03 20:57:20 -08:00
parent 38f89a1bd8
commit 1e6f812003
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}