label: Shorten set_markup_internal a bit

This commit is contained in:
Timm Bäder 2020-04-10 16:35:15 +02:00
parent 1db53e6676
commit 13fde6f4cd

View File

@ -2411,8 +2411,7 @@ gtk_label_set_markup_internal (GtkLabel *label,
if (attrs)
{
if (priv->markup_attrs)
pango_attr_list_unref (priv->markup_attrs);
g_clear_pointer (&priv->markup_attrs, pango_attr_list_unref);
priv->markup_attrs = attrs;
}