[pulseaudio-commits] r1174 - /trunk/src/pulsecore/module.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Mon Jul 31 14:53:48 PDT 2006
Author: lennart
Date: Mon Jul 31 23:53:48 2006
New Revision: 1174
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1174&root=pulseaudio&view=rev
Log:
deal properly with recursive module unloading
Modified:
trunk/src/pulsecore/module.c
Modified: trunk/src/pulsecore/module.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/module.c?rev=1174&root=pulseaudio&r1=1173&r2=1174&view=diff
==============================================================================
--- trunk/src/pulsecore/module.c (original)
+++ trunk/src/pulsecore/module.c Mon Jul 31 23:53:48 2006
@@ -224,9 +224,13 @@
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;
More information about the pulseaudio-commits
mailing list