projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2e94ca
)
deal properly with recursive module unloading
author
Lennart Poettering
<lennart@poettering.net>
Mon, 31 Jul 2006 21:53:48 +0000
(21:53 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 31 Jul 2006 21:53:48 +0000
(21:53 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1174
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/pulsecore/module.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/module.c
b/src/pulsecore/module.c
index
e7dca78
..
3568059
100644
(file)
--- a/
src/pulsecore/module.c
+++ b/
src/pulsecore/module.c
@@
-224,10
+224,14
@@
static void free_callback(void *p, PA_GCC_UNUSED void *userdata) {
void pa_module_unload_all(pa_core *c) {
assert(c);
+ pa_module *m;
if (!c->modules)
return;
+ while ((m = pa_idxset_first(c->modules, NULL)))
+ pa_module_unload(c, m);
+
pa_idxset_free(c->modules, free_callback, NULL);
c->modules = NULL;