diff options
Diffstat (limited to 'pulse/pulse.c')
-rw-r--r-- | pulse/pulse.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pulse/pulse.c b/pulse/pulse.c index 022ca55..3940238 100644 --- a/pulse/pulse.c +++ b/pulse/pulse.c @@ -208,6 +208,12 @@ snd_pulse_t *pulse_new(void) fail: if (p->mainloop) + pa_threaded_mainloop_stop(p->mainloop); + + if (p->context) + pa_context_unref(p->context); + + if (p->mainloop) pa_threaded_mainloop_free(p->mainloop); if (p->main_fd >= 0) |