[gtk: 1/2] GtkHeaderBar: Don't leak decoration layout
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] GtkHeaderBar: Don't leak decoration layout
- Date: Mon, 6 May 2019 14:17:42 +0000 (UTC)
commit e98973e2c0adae61974a4cf44c94a3756901119b
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.
gtk/gtkheaderbar.c | 1 +
1 file changed, 1 insertion(+)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]