summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-06 15:38:28 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-06 15:38:28 +0000
commitbb960cf53ebec3fc23e6cc60c84531f96d39430a (patch)
tree43790acc78744ccc9b53a77bbb3e8dd73a5cc67d /libao2
parent561acd7e1afcf3f1a27bc76b67b6a52d61a3beb2 (diff)
downloadmpv-bb960cf53ebec3fc23e6cc60c84531f96d39430a.tar.bz2
mpv-bb960cf53ebec3fc23e6cc60c84531f96d39430a.tar.xz
Free fix by kisg@lme.linux.hu
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5502 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r--libao2/pl_surround.c4
1 files changed, 3 insertions, 1 deletions
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;
}