diff options
author | Stefano Karapetsas <[email protected]> | 2014-10-14 10:51:08 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-10-14 10:51:08 +0200 |
commit | c02b2892a421b5a2aed7a3619f5ac1b3ce0548fd (patch) | |
tree | 68e2e8160f521f39c09cbafd0a05694b0f11190e /backends/pulse/pulse-connection.c | |
parent | 526fdf477edc40452c18b51e13cbdffaa69de52b (diff) | |
download | libmatemixer-c02b2892a421b5a2aed7a3619f5ac1b3ce0548fd.tar.bz2 libmatemixer-c02b2892a421b5a2aed7a3619f5ac1b3ce0548fd.tar.xz |
pulse: Fix assertion if pulseaudio is not running
Diffstat (limited to 'backends/pulse/pulse-connection.c')
-rw-r--r-- | backends/pulse/pulse-connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/pulse/pulse-connection.c b/backends/pulse/pulse-connection.c index 7344d2e..afd1e48 100644 --- a/backends/pulse/pulse-connection.c +++ b/backends/pulse/pulse-connection.c @@ -502,7 +502,8 @@ pulse_connection_disconnect (PulseConnection *connection) if (connection->priv->state == PULSE_CONNECTION_DISCONNECTED) return; - pa_context_unref (connection->priv->context); + if (connection->priv->context) + pa_context_unref (connection->priv->context); connection->priv->context = NULL; connection->priv->outstanding = 0; |