Skip to content
Snippets Groups Projects
Commit 2e8f19d2 authored by Nicolas George's avatar Nicolas George
Browse files

avfiltergraph: free the sink_links heap.

parent c799e462
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,7 @@ void avfilter_graph_free(AVFilterGraph **graph) ...@@ -55,6 +55,7 @@ void avfilter_graph_free(AVFilterGraph **graph)
return; return;
for (; (*graph)->filter_count > 0; (*graph)->filter_count--) for (; (*graph)->filter_count > 0; (*graph)->filter_count--)
avfilter_free((*graph)->filters[(*graph)->filter_count - 1]); avfilter_free((*graph)->filters[(*graph)->filter_count - 1]);
av_freep(&(*graph)->sink_links);
av_freep(&(*graph)->scale_sws_opts); av_freep(&(*graph)->scale_sws_opts);
av_freep(&(*graph)->filters); av_freep(&(*graph)->filters);
av_freep(graph); av_freep(graph);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment