[FFmpeg-cvslog] avfiltergraph: free the sink_links heap.

Nicolas George git at videolan.org
Mon Apr 23 23:49:34 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Mon Apr 23 23:27:16 2012 +0200| [2e8f19d26f3ef7e804a7f9f9811e4b538e0a5969] | committer: Nicolas George

avfiltergraph: free the sink_links heap.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2e8f19d26f3ef7e804a7f9f9811e4b538e0a5969
---

 libavfilter/avfiltergraph.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index ef597dd..23d4042 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -55,6 +55,7 @@ void avfilter_graph_free(AVFilterGraph **graph)
         return;
     for (; (*graph)->filter_count > 0; (*graph)->filter_count--)
         avfilter_free((*graph)->filters[(*graph)->filter_count - 1]);
+    av_freep(&(*graph)->sink_links);
     av_freep(&(*graph)->scale_sws_opts);
     av_freep(&(*graph)->filters);
     av_freep(graph);



More information about the ffmpeg-cvslog mailing list