changeset 16047:7b8870739cc7

guard against double uninit (reportedly can happen on STRG+C)
author reimar
date Fri, 22 Jul 2005 11:17:05 +0000
parents 8335d14a0cad
children 200dafcc7b10
files libmpcodecs/ad_mpc.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_mpc.c	Fri Jul 22 10:55:19 2005 +0000
+++ b/libmpcodecs/ad_mpc.c	Fri Jul 22 11:17:05 2005 +0000
@@ -100,6 +100,7 @@
 static void uninit(sh_audio_t *sh) {
   if (sh->context)
     free(sh->context);
+  sh->context = NULL;
 }
 
 static int init(sh_audio_t *sh) {