diff --git a/libao2/pl_surround.c b/libao2/pl_surround.c index 1d832776e0..fcb3be23bf 100644 --- a/libao2/pl_surround.c +++ b/libao2/pl_surround.c @@ -148,8 +148,10 @@ static void uninit(){ 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; }