summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-08-22 23:31:49 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-08-22 23:31:49 +0200
commitc2271fa7f9a88afb374300c7320b57b870969926 (patch)
treedc3a285a84039406f4bd643a9b9e3a5fb85934b7 /libavfilter
parent081a822b6c282f6091b7c79971e3597bfa98c49a (diff)
lavfi: free partial audio buffers when destroying links.
Fix a memleak that the recent change of architecture made more likely to happen.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avfilter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 861a57d400..d05d4eaf01 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -156,6 +156,8 @@ void avfilter_link_free(AVFilterLink **link)
if ((*link)->pool)
ff_free_pool((*link)->pool);
+ avfilter_unref_bufferp(&(*link)->partial_buf);
+
av_freep(link);
}