Revision 24de0edb libavfilter/avfiltergraph.c

View differences:

libavfilter/avfiltergraph.c
34 34
void avfilter_graph_free(AVFilterGraph *graph)
35 35
{
36 36
    for(; graph->filter_count > 0; graph->filter_count --)
37
        avfilter_destroy(graph->filters[graph->filter_count - 1]);
37
        avfilter_free(graph->filters[graph->filter_count - 1]);
38 38
    av_freep(&graph->scale_sws_opts);
39 39
    av_freep(&graph->filters);
40 40
}
......
143 143
                    snprintf(scale_args, sizeof(scale_args), "0:0:%s", graph->scale_sws_opts);
144 144
                    if(!scale || scale->filter->init(scale, scale_args, NULL) ||
145 145
                                 avfilter_insert_filter(link, scale, 0, 0)) {
146
                        avfilter_destroy(scale);
146
                        avfilter_free(scale);
147 147
                        return -1;
148 148
                    }
149 149

  

Also available in: Unified diff