guard against double uninit (reportedly can happen on STRG+C)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16048 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-07-22 11:17:05 +00:00
parent 6555e17422
commit 5414e93721
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ static int preinit(sh_audio_t *sh) {
static void uninit(sh_audio_t *sh) {
if (sh->context)
free(sh->context);
sh->context = NULL;
}
static int init(sh_audio_t *sh) {