diff options
-rw-r--r-- | plugins/pulse/pulse.c | 7 |
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; } |