diff options
author | Guido Günther <agx@sigxcpu.org> | 2019-05-06 12:55:16 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2019-05-06 12:59:20 +0200 |
commit | e98973e2c0adae61974a4cf44c94a3756901119b (patch) | |
tree | 242d10b93997bdc7b31e640d7da09692c72e69f1 /gtk/gtkheaderbar.c | |
parent | 562e4920565b0e5e4c859474916ffa3f41f42916 (diff) | |
download | gtk+-e98973e2c0adae61974a4cf44c94a3756901119b.tar.gz |
GtkHeaderBar: Don't leak decoration layout
Currently we leak priv->decoration_layout if the layout is set
multiple times.
Diffstat (limited to 'gtk/gtkheaderbar.c')
-rw-r--r-- | gtk/gtkheaderbar.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 42a2300810..dcdcb4f4fd 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -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); |