[gtk/wip/baedert/gl-rework: 2/3] tooitem: Plug memory leak



commit c78a7e7609b810497d43a4185783282d2f902242
Author: Timm Bäder <mail baedert org>
Date:   Mon Dec 30 09:16:09 2019 +0100

    tooitem: Plug memory leak

 gtk/gtktoolitem.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c
index dcd0dec924..08609a67ee 100644
--- a/gtk/gtktoolitem.c
+++ b/gtk/gtktoolitem.c
@@ -214,6 +214,10 @@ gtk_tool_item_init (GtkToolItem *toolitem)
 static void
 gtk_tool_item_finalize (GObject *object)
 {
+  GtkToolItemPrivate *priv = gtk_tool_item_get_instance_private (GTK_TOOL_ITEM (object));
+
+  g_clear_pointer (&priv->overflow_text, g_free);
+
   G_OBJECT_CLASS (gtk_tool_item_parent_class)->finalize (object);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]