From e98973e2c0adae61974a4cf44c94a3756901119b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Mon, 6 May 2019 12:55:16 +0200 Subject: [PATCH] GtkHeaderBar: Don't leak decoration layout Currently we leak priv->decoration_layout if the layout is set multiple times. --- gtk/gtkheaderbar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 42a23008108..dcdcb4f4fda 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); -- GitLab