diff libao2/pl_surround.c @ 5501:8336b1cf8d70

Free fix by kisg@lme.linux.hu
author atmos4
date Sat, 06 Apr 2002 15:38:28 +0000
parents d358dc143a9e
children 2eec40929570
line wrap: on
line diff
--- a/libao2/pl_surround.c	Sat Apr 06 14:06:33 2002 +0000
+++ b/libao2/pl_surround.c	Sat Apr 06 15:38:28 2002 +0000
@@ -148,8 +148,10 @@
     free(pl_surround.Ls_delaybuf);
   if(pl_surround.Rs_delaybuf) 
     free(pl_surround.Rs_delaybuf);
-  if(pl_surround.databuf) 
+  if(pl_surround.databuf) {
     free(pl_surround.databuf);
+    pl_surround.databuf = NULL;
+  }
   pl_surround.delaybuf_len=0;
 }