forked from AuroraMiddleware/gtk
GtkHeaderBar: Don't leak decoration layout
Currently we leak priv->decoration_layout if the layout is set multiple times.
This commit is contained in:
parent
562e492056
commit
e98973e2c0
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user