summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2007-06-11 03:51:31 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-06-11 03:51:31 +0000
commit3c89a6b47c737b904420916df2058909793cb638 (patch)
tree709920bc054ae3f2bf3a44ef8d043b2bfe067dd7
parent780c39c358acb90489b24a2c49432ad11d5c9a59 (diff)
downloadgtk+-3c89a6b47c737b904420916df2058909793cb638.tar.gz
Don't leak cursor_hadjustment
svn path=/trunk/; revision=18099
-rw-r--r--ChangeLog4
-rw-r--r--gtk/gtkentry.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b46f3607f0..57b91d4711 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2007-06-10 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkentry.c (gtk_entry_finalize): Don't leak cursor_hadjustment.
+
+2007-06-10 Matthias Clasen <mclasen@redhat.com>
+
* gdk/x11/gdkspawn-x11.c (set_environment): Handle child_setup
being NULL. (#445691, Christopher Taylor)
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 3673d87ea0..063822c848 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -1242,6 +1242,9 @@ gtk_entry_finalize (GObject *object)
entry->text = NULL;
}
+ if (priv->cursor_hadjustment)
+ g_object_unref (priv->cursor_hadjustment);
+
G_OBJECT_CLASS (gtk_entry_parent_class)->finalize (object);
}