mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
deal properly with recursive module unloading
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1174 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
e2e94ca47c
commit
ccf67d2988
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue