summaryrefslogtreecommitdiff
path: root/plugins/pulse
diff options
context:
space:
mode:
authorGravatar Anton Novikov <tonn.post@gmail.com>2010-03-21 17:21:07 +0400
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-03-21 14:38:54 +0100
commitf9211076a2094f11c1c891a4fecc7e9d66f30fff (patch)
treead9b6bc2726bb813e71acb5d9a5851f578255bc3 /plugins/pulse
parent3b2fe9613863354ed34940688242703e75ca541f (diff)
pulse plugin crash on stopping
Diffstat (limited to 'plugins/pulse')
-rw-r--r--plugins/pulse/pulse.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/pulse/pulse.c b/plugins/pulse/pulse.c
index 96db9c8b..1d38b356 100644
--- a/plugins/pulse/pulse.c
+++ b/plugins/pulse/pulse.c
@@ -118,8 +118,11 @@ static int pulse_free(void)
pulse_tid = 0;
state = OUTPUT_STATE_STOPPED;
- pa_simple_free(s);
- s = NULL;
+ if (s != NULL)
+ {
+ pa_simple_free(s);
+ s = NULL;
+ }
return 0;
}