[gtk/gtk-3-24: 1/2] GtkHeaderBar: Don't leak decoration layout
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 1/2] GtkHeaderBar: Don't leak decoration layout
- Date: Mon, 6 May 2019 14:17:28 +0000 (UTC)
commit b1b9de6836a19cb6336b6a20ad652afc14f1e2b2
Author: Guido Günther <agx sigxcpu org>
Date: Mon May 6 12:55:16 2019 +0200
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>
gtk/gtkheaderbar.c | 1 +
1 file changed, 1 insertion(+)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]