summaryrefslogtreecommitdiffstats
path: root/libaf/af_channels.c
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-10 18:12:03 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-10 18:12:03 +0000
commite876e45030738ae5e40f97182dd44dbfdd9555ae (patch)
tree8279da8add32860ddb2aacc47f38802ebe2f08a8 /libaf/af_channels.c
parent945cb3447e83464d2496225a54e198be047a1b5d (diff)
downloadmpv-e876e45030738ae5e40f97182dd44dbfdd9555ae.tar.bz2
mpv-e876e45030738ae5e40f97182dd44dbfdd9555ae.tar.xz
Fix memory leaks.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22197 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf/af_channels.c')
-rw-r--r--libaf/af_channels.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libaf/af_channels.c b/libaf/af_channels.c
index 63214ec56a..8fcdb99c85 100644
--- a/libaf/af_channels.c
+++ b/libaf/af_channels.c
@@ -234,10 +234,10 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
// Deallocate memory
static void uninit(struct af_instance_s* af)
{
- if(af->setup)
- free(af->setup);
- if(af->data)
- free(af->data);
+ free(af->setup);
+ if (af->data)
+ free(af->data->audio);
+ free(af->data);
}
// Filter data through filter