diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2007-06-11 03:51:31 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-06-11 03:51:31 +0000 |
commit | 3c89a6b47c737b904420916df2058909793cb638 (patch) | |
tree | 709920bc054ae3f2bf3a44ef8d043b2bfe067dd7 | |
parent | 780c39c358acb90489b24a2c49432ad11d5c9a59 (diff) | |
download | gtk+-3c89a6b47c737b904420916df2058909793cb638.tar.gz |
Don't leak cursor_hadjustment
svn path=/trunk/; revision=18099
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gtk/gtkentry.c | 3 |
2 files changed, 7 insertions, 0 deletions
@@ -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); } |