# HG changeset patch # User reimar # Date 1122031025 0 # Node ID 7b8870739cc749ce788587621d08331c5b31ee7a # Parent 8335d14a0cad319bf49ece2c9f3d9b821a6d294a guard against double uninit (reportedly can happen on STRG+C) diff -r 8335d14a0cad -r 7b8870739cc7 libmpcodecs/ad_mpc.c --- 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) {