diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-08-22 23:31:49 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-08-22 23:31:49 +0200 |
commit | c2271fa7f9a88afb374300c7320b57b870969926 (patch) | |
tree | dc3a285a84039406f4bd643a9b9e3a5fb85934b7 /libavfilter/avfilter.c | |
parent | 081a822b6c282f6091b7c79971e3597bfa98c49a (diff) | |
download | ffmpeg-c2271fa7f9a88afb374300c7320b57b870969926.tar.gz |
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/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 2 |
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); } |