filter/audiod: Be nice to filters without close method.
[paraslash.git] / filter.c
index bf428b3..08398d5 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -155,7 +155,8 @@ out_cleanup:
                struct filter_node *fn = fns[i];
 
                f = filters + fn->filter_num;
-               f->close(fn);
+               if (f->close)
+                       f->close(fn);
                btr_free_node(fn->btrn);
                free(fn->conf);
                free(fn);