actually unload the modules from a new stack frame

This commit is contained in:
Lennart Poettering 2008-12-17 21:20:51 +01:00
parent 86c6fd85f1
commit b95539b18b

View file

@ -511,7 +511,7 @@ static void device_removed_cb(LibHalContext* context, const char *udi) {
pa_log_debug("Device removed: %s", udi);
if ((d = pa_hashmap_remove(u->devices, udi))) {
pa_module_unload_by_index(u->core, d->index, TRUE);
pa_module_unload_request_by_index(u->core, d->index, TRUE);
hal_device_free(d);
}
}