[gtk+] GtkEntry: plug a small memleak



commit 1a1c30adfa55f145c0a96d81cd19fb1bb8e009ca
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Oct 16 21:48:11 2014 -0400

    GtkEntry: plug a small memleak
    
    GtkEntry was leaking a pango attribute list, if one was set.

 gtk/gtkentry.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index ff30d16..21d618e 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3034,6 +3034,9 @@ gtk_entry_finalize (GObject *object)
   if (priv->tabs)
     pango_tab_array_free (priv->tabs);
 
+  if (priv->attrs)
+    pango_attr_list_unref (priv->attrs);
+
   G_OBJECT_CLASS (gtk_entry_parent_class)->finalize (object);
 }
 


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