From bb960cf53ebec3fc23e6cc60c84531f96d39430a Mon Sep 17 00:00:00 2001 From: atmos4 Date: Sat, 6 Apr 2002 15:38:28 +0000 Subject: [PATCH] Free fix by kisg@lme.linux.hu git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5502 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/pl_surround.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }