summaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-10-14 10:51:08 +0200
committerStefano Karapetsas <[email protected]>2014-10-14 10:51:08 +0200
commitc02b2892a421b5a2aed7a3619f5ac1b3ce0548fd (patch)
tree68e2e8160f521f39c09cbafd0a05694b0f11190e /backends
parent526fdf477edc40452c18b51e13cbdffaa69de52b (diff)
downloadlibmatemixer-c02b2892a421b5a2aed7a3619f5ac1b3ce0548fd.tar.bz2
libmatemixer-c02b2892a421b5a2aed7a3619f5ac1b3ce0548fd.tar.xz
pulse: Fix assertion if pulseaudio is not running
Diffstat (limited to 'backends')
-rw-r--r--backends/pulse/pulse-connection.c3
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;