device-manager: Free a hook slot to prevent segv on unload

This commit is contained in:
Colin Guthrie 2011-06-06 21:16:11 +02:00
parent eff5bec87e
commit b865999126

View file

@ -1574,6 +1574,9 @@ void pa__done(pa_module*m) {
if (u->source_unlink_hook_slot)
pa_hook_slot_free(u->source_unlink_hook_slot);
if (u->connection_unlink_hook_slot)
pa_hook_slot_free(u->connection_unlink_hook_slot);
if (u->save_time_event)
u->core->mainloop->time_free(u->save_time_event);