projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67f5238
)
audiod _close_filters(): Don't segfault if fn is NULL.
author
Andre Noll
<maan@systemlinux.org>
Mon, 11 Jan 2010 23:57:24 +0000
(
00:57
+0100)
committer
Andre Noll
<maan@systemlinux.org>
Mon, 11 Jan 2010 23:57:24 +0000
(
00:57
+0100)
audiod.c
patch
|
blob
|
history
diff --git
a/audiod.c
b/audiod.c
index
322ce3b
..
e950ded
100644
(file)
--- a/
audiod.c
+++ b/
audiod.c
@@
-376,8
+376,11
@@
static void _close_filters(struct slot_info *s)
return;
for (i = 0; i < a->num_filters; i++) {
struct filter_node *fn = s->fns + i;
- struct filter *f
= filters + fn->filter_num
;
+ struct filter *f;
+ if (!fn)
+ continue;
+ f = filters + fn->filter_num;
f->close(fn);
btr_free_node(fn->btrn);
}