Merge branch 'header-bar-leak4' into 'master'

GtkHeaderBar: Don't leak decoration layout

See merge request GNOME/gtk!822
This commit is contained in:
Matthias Clasen 2019-05-06 14:17:17 +00:00
commit a8aa7afa13

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);