Don't leak cursor_hadjustment

svn path=/trunk/; revision=18099
This commit is contained in:
Matthias Clasen 2007-06-11 03:51:31 +00:00
parent 780c39c358
commit 3c89a6b47c
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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);
}