summaryrefslogtreecommitdiffstats
path: root/pulse/pulse.c
diff options
context:
space:
mode:
Diffstat (limited to 'pulse/pulse.c')
-rw-r--r--pulse/pulse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pulse/pulse.c b/pulse/pulse.c
index 53a25bd..e738d07 100644
--- a/pulse/pulse.c
+++ b/pulse/pulse.c
@@ -174,6 +174,7 @@ void pulse_free(snd_pulse_t * p)
{
pa_threaded_mainloop_stop(p->mainloop);
+ pa_context_disconnect(p->context);
pa_context_unref(p->context);
pa_threaded_mainloop_free(p->mainloop);