summaryrefslogtreecommitdiff
path: root/mate-volume-control/gvc-applet.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-17 17:34:49 +0300
committermonsta <[email protected]>2018-01-17 17:36:37 +0300
commitea93aed965bedb54269e2d8aecd9ff6d8639d0a5 (patch)
tree4201c54015f2888b58855b4aba0c774c9ccbd47a /mate-volume-control/gvc-applet.c
parent74b4b12d8765fcfb24cffe446235e0df8abfedeb (diff)
downloadmate-media-ea93aed965bedb54269e2d8aecd9ff6d8639d0a5.tar.bz2
mate-media-ea93aed965bedb54269e2d8aecd9ff6d8639d0a5.tar.xz
gvc-applet: don't try to increase refcount of a NULL object
fixes another runtime warning
Diffstat (limited to 'mate-volume-control/gvc-applet.c')
-rw-r--r--mate-volume-control/gvc-applet.c2
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",