GtkHeaderBar: Don't leak decoration layout

Currently we leak priv->decoration_layout if the layout is set
multiple times.
This commit is contained in:
Guido Günther 2019-05-06 12:55:16 +02:00
parent 562e492056
commit e98973e2c0

View File

@ -2045,6 +2045,7 @@ gtk_header_bar_set_decoration_layout (GtkHeaderBar *bar,
priv = gtk_header_bar_get_instance_private (bar);
g_free (priv->decoration_layout);
priv->decoration_layout = g_strdup (layout);
priv->decoration_layout_set = (layout != NULL);