device-manager: Free a hook slot to prevent segv on unload
authorColin Guthrie <colin@mageia.org>
Mon, 6 Jun 2011 19:16:11 +0000 (21:16 +0200)
committerColin Guthrie <colin@mageia.org>
Mon, 6 Jun 2011 19:16:28 +0000 (21:16 +0200)
src/modules/module-device-manager.c

index c28affd..4138794 100644 (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);