ref: 6cae0f05cfedce28038f9411f03e6b1415250c33
parent: e7262d2a8859501152ef22bc7cb9dcc26b05c402
author: Simon Howard <[email protected]>
date: Sat Aug 29 17:03:24 EDT 2009
Don't crash if OPL is shutdown after SDL was initialised. Subversion-branch: /branches/opl-branch Subversion-revision: 1635
--- a/opl/opl_sdl.c
+++ b/opl/opl_sdl.c
@@ -211,6 +211,8 @@
static void OPL_SDL_Shutdown(void)
{
+ Mix_SetPostMix(NULL, NULL);
+
if (sdl_was_initialised)
{
Mix_CloseAudio();