[gtk+/gtk-3-14] GtkEntry: plug a small memleak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] GtkEntry: plug a small memleak
- Date: Fri, 17 Oct 2014 02:00:15 +0000 (UTC)
commit c4fe3882558a31f3a006c21b23664de92e29f5bb
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 fff64d8..fee5097 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]