diff --git a/src/st/st-icon.c b/src/st/st-icon.c index b29744b64..3fec7e2a2 100644 --- a/src/st/st-icon.c +++ b/src/st/st-icon.c @@ -544,7 +544,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; }