summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2019-05-06 12:55:16 +0200
committerGuido Günther <agx@sigxcpu.org>2019-05-06 13:14:02 +0200
commitb1b9de6836a19cb6336b6a20ad652afc14f1e2b2 (patch)
tree601380a834147059c4d1fa80ffcfd4f769288ecf
parent2957b86f725be1cc2704293511a199ef39f5369d (diff)
downloadgtk+-b1b9de6836a19cb6336b6a20ad652afc14f1e2b2.tar.gz
GtkHeaderBar: Don't leak decoration layout
Currently we leak priv->decoration_layout if the layout is set multiple times. Signed-off-by: Guido Günther <agx@sigxcpu.org>
-rw-r--r--gtk/gtkheaderbar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 39e81b4079..dd7d2093c9 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -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);