Merge branch 'header-bar-leak3' into 'gtk-3-24'

GtkHeaderBar: Don't leak decoration layout

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

View File

@ -2370,6 +2370,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);