diff options
-rw-r--r-- | mate-volume-control/gvc-applet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mate-volume-control/gvc-applet.c b/mate-volume-control/gvc-applet.c index 3cb691f..686ee11 100644 --- a/mate-volume-control/gvc-applet.c +++ b/mate-volume-control/gvc-applet.c @@ -205,7 +205,7 @@ update_default_input_stream (GvcApplet *applet) g_object_unref (applet->priv->input); } - applet->priv->input = g_object_ref (stream); + applet->priv->input = (stream == NULL) ? NULL : g_object_ref (stream); if (applet->priv->input != NULL) { g_signal_connect (G_OBJECT (applet->priv->input), "control-added", |