From 6b5ec762830d2984da8d5cc4e3edd20899b9f45a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Fri, 12 Apr 2013 14:07:59 +0200 Subject: [PATCH] lavfi: fix forgotten chunk in eb0f774d. --- libavfilter/graphparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index bd6863e92f..3718d09c99 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -586,8 +586,8 @@ end: avfilter_inout_free(&curr_inputs); if (ret < 0) { - for (; graph->nb_filters > 0; graph->nb_filters--) - avfilter_free(graph->filters[graph->nb_filters - 1]); + while (graph->nb_filters) + avfilter_free(graph->filters[0]); av_freep(&graph->filters); } return ret;