label: Save a few LOC

This commit is contained in:
Timm Bäder 2020-04-10 16:03:37 +02:00
parent 99998d25f8
commit 23cffdfe42

View File

@ -1864,11 +1864,8 @@ gtk_label_recalculate (GtkLabel *label)
else
{
if (!priv->pattern_set)
{
if (priv->markup_attrs)
pango_attr_list_unref (priv->markup_attrs);
priv->markup_attrs = NULL;
}
g_clear_pointer (&priv->markup_attrs, pango_attr_list_unref);
gtk_label_set_text_internal (label, g_strdup (priv->label));
}
@ -2938,9 +2935,7 @@ gtk_label_finalize (GObject *object)
g_clear_pointer (&priv->markup_attrs, pango_attr_list_unref);
if (priv->select_info)
{
g_object_unref (priv->select_info->provider);
}
g_object_unref (priv->select_info->provider);
gtk_label_clear_links (label);
g_free (priv->select_info);