diff --git a/src/st/st-icon.c b/src/st/st-icon.c index 9d52727c8..fac474af9 100644 --- a/src/st/st-icon.c +++ b/src/st/st-icon.c @@ -539,7 +539,8 @@ st_icon_set_icon_name (StIcon *icon, if (g_icon_equal (priv->gicon, gicon)) /* do nothing */ { - g_object_unref (gicon); + if (gicon) + g_object_unref (gicon); return; }