[FFmpeg-devel] [PATCH] lavfi: free partial audio buffers when destroying links.
Nicolas George
nicolas.george at normalesup.org
Wed Aug 22 23:45:09 CEST 2012
Fix a memleak that the recent change of architecture made
more likely to happen.
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
libavfilter/avfilter.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 861a57d..d05d4ea 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);
}
--
1.7.10.4
More information about the ffmpeg-devel
mailing list