filter/audiod: Be nice to filters without close method.
[paraslash.git] / audiod.c
index 9bb40e0..128f7b4 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -381,7 +381,8 @@ static void close_filters(struct slot_info *s)
                if (!fn)
                        continue;
                f = filters + fn->filter_num;
-               f->close(fn);
+               if (f->close)
+                       f->close(fn);
                btr_free_node(fn->btrn);
        }
        free(s->fns);