]> code.delx.au - pulseaudio/commitdiff
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 c28affd1ee07fd85bcf7c781e491e9e69b1d2e3a..4138794c4385626258c4227251cd19b5b72305ec 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);