Skip to content

Commit

Permalink
Sam Lantinga - Sat Nov 14 12:38:01 PST 2009
Browse files Browse the repository at this point in the history
 * Fixed crash on exit if the MikMod library isn't available
  • Loading branch information
slouken committed Nov 14, 2009
1 parent 2eb2ed4 commit 75988b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
@@ -1,4 +1,6 @@
1.2.11:
Sam Lantinga - Sat Nov 14 12:38:01 PST 2009
* Fixed crash on exit if the MikMod library isn't available
Sam Lantinga - Sat Nov 14 11:22:14 PST 2009
* Fixed bug loading multiple music files

Expand Down
4 changes: 3 additions & 1 deletion music_mod.c
Expand Up @@ -131,7 +131,9 @@ int MOD_init(SDL_AudioSpec *mixerfmt)
/* Uninitialize the music players */
void MOD_exit(void)
{
mikmod.MikMod_Exit();
if (mikmod.MikMod_Exit) {
mikmod.MikMod_Exit();
}
}

/* Set the volume for a MOD stream */
Expand Down

0 comments on commit 75988b2

Please sign in to comment.