changeset 21017:32d611b59079

Fix double free in af_resample when reinited with suitable parameters
author uau
date Sat, 18 Nov 2006 17:07:17 +0000
parents d598cc992c7d
children 51575db8d5c0
files libaf/af_resample.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af_resample.c	Sat Nov 18 16:51:40 2006 +0000
+++ b/libaf/af_resample.c	Sat Nov 18 17:07:17 2006 +0000
@@ -173,6 +173,7 @@
 	if(s->xq[i])
 	  free(s->xq[i]);
       free(s->xq);
+      s->xq = NULL;
     }
 
     if(AF_DETACH == (rv = set_types(af,n)))