module: Always remove freed module from modules_pending_unload
authorDavid Henningsson <david.henningsson@canonical.com>
Thu, 3 Sep 2015 07:43:01 +0000 (09:43 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Mon, 7 Sep 2015 12:59:57 +0000 (14:59 +0200)
commita527711528ce8f9e1b1f73957fa8281f9126b370
treee1366d7e17ca3647ab886187e5fd459e8093328d
parent83de5a0995f0f98217965dab78ffb02eb50fc0e7
module: Always remove freed module from modules_pending_unload

pa_module_free is called from more than one place, not all of
these places correctly removed the module from the
modules_pending_unload array, potentially causing a dangling pointer
in that array.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/pulsecore/module.c