avfiltergraph: free the sink_links heap.
authorNicolas George <nicolas.george@normalesup.org>
Mon, 23 Apr 2012 21:27:16 +0000 (23:27 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Mon, 23 Apr 2012 21:36:33 +0000 (23:36 +0200)
libavfilter/avfiltergraph.c

index ef597dd..23d4042 100644 (file)
@@ -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);