summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-08-05 01:04:50 +0200
committerLennart Poettering <lennart@poettering.net>2009-08-05 01:04:50 +0200
commit53fcf3add0521b83e8b5226e6660d2ec9548f48c (patch)
tree6ee6c4da36f07f2a355b5a9a84d26f8e5b6d94a2 /src
parenta73c615b7480f59991dc37bc838fd16dcbc0175b (diff)
simple: call pa_context_disconnect() just to be sure
Diffstat (limited to 'src')
-rw-r--r--src/pulse/simple.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pulse/simple.c b/src/pulse/simple.c
index c2014c5c..b5e108fb 100644
--- a/src/pulse/simple.c
+++ b/src/pulse/simple.c
@@ -261,8 +261,10 @@ void pa_simple_free(pa_simple *s) {
if (s->stream)
pa_stream_unref(s->stream);
- if (s->context)
+ if (s->context) {
+ pa_context_disconnect(s->context);
pa_context_unref(s->context);
+ }
if (s->mainloop)
pa_threaded_mainloop_free(s->mainloop);