Skip to content

Commit

Permalink
Reset some Timidity state on shutdown to prevent crash when reinitial…
Browse files Browse the repository at this point in the history
…izing.

Fixes Bugzilla #1232.

Thanks to Ozkan Sezer for the patch!
(transplanted from e564b7029c2953ee918401dd9a3f2766cad1c6ca)
  • Loading branch information
icculus committed Jun 15, 2011
1 parent 6e2c5dc commit 544dd22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions decoders/timidity/timidity.c
Expand Up @@ -594,6 +594,7 @@ void Timidity_Exit(void)
free(e);
}
free(master_tonebank[i]);
master_tonebank[i] = NULL;
}
if (master_drumset[i])
{
Expand All @@ -608,6 +609,7 @@ void Timidity_Exit(void)
free(e);
}
free(master_drumset[i]);
master_drumset[i] = NULL;
}
}

Expand Down

0 comments on commit 544dd22

Please sign in to comment.