Merge commit '1565cbc65cbb9f95c11367314a080068895e0cf0'
[ffmpeg.git] / libavfilter / avfilter.c
index 406537a..54d90dc 100644 (file)
@@ -571,6 +571,9 @@ void avfilter_free(AVFilterContext *filter)
     if (!filter)
         return;
 
+    if (filter->graph)
+        ff_filter_graph_remove_filter(filter->graph, filter);
+
     if (filter->filter->uninit)
         filter->filter->uninit(filter);