[gtk] toolitem: Plug memory leak



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

    toolitem: 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]