From 51f91685e202bac97c3ce92c47dc7bc7d4e12588 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 27 Jun 2016 22:19:49 -0700 Subject: [PATCH] SDL: Fix sporadic crash when deinitializing audio --- CHANGES | 1 + src/platform/sdl/main.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index bec3bf193..75ee3a599 100644 --- a/CHANGES +++ b/CHANGES @@ -23,6 +23,7 @@ Bugfixes: - Util: Fix realloc semantics in utf16to8 - ARM7: Fix setting spsr privilege bits when spsr is empty - GBA BIOS: Fix ArcTan2 accuracy and boundary conditions + - SDL: Fix sporadic crash when deinitializing audio Misc: - GBA: Slightly optimize GBAProcessEvents - Qt: Add preset for DualShock 4 diff --git a/src/platform/sdl/main.c b/src/platform/sdl/main.c index ebbbaae93..27476f846 100644 --- a/src/platform/sdl/main.c +++ b/src/platform/sdl/main.c @@ -144,6 +144,7 @@ int main(int argc, char** argv) { #endif if (GBAThreadStart(&context)) { renderer.runloop(&context, &renderer); + GBASDLPauseAudio(&renderer.audio); GBAThreadJoin(&context); } else { didFail = true;