diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-08-21 23:34:01 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-09-03 20:25:35 +0200 |
commit | 7c1f52d2c510bd5cdf75f0acd15604f645ea5b41 (patch) | |
tree | 474b9df0abe3b79f0406bd37af7fc0c049ffa492 | |
parent | 10aac327d94ed32e05154d67f3a6df0529cb37dd (diff) |
Call pa_context_disconnect() explicitly
Make sure the pa_context is disconnected when we unref it. This is also done
implicitly when the last reference to the pa_context is dropped, but that might
be later then expected in case someone else took a reference on our object. To
make sure that the pa_context will than not make any call into our code,
disconnect it explicitly.
-rw-r--r-- | pulse/pulse.c | 1 |
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); |