summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
authorTim Janik <timj@gimp.org>1998-02-02 20:40:03 +0000
committerTim Janik <timj@src.gnome.org>1998-02-02 20:40:03 +0000
commit6b5e983f3d79e47b1a5fed716cdd05e7a4f5e717 (patch)
treec2fe54fd6c14913119ea5fabb9fba688a4cb323d /gtk/gtkentry.c
parenteeaefdf04fd1972f1c9bcd98997f940efe372d83 (diff)
downloadgtk+-6b5e983f3d79e47b1a5fed716cdd05e7a4f5e717.tar.gz
fixed destroy handler, so it doesn't segfault with the new refcounting
Mon Feb 2 04:15:08 1998 Tim Janik <timj@gimp.org> * gtk/gtktoolbar.c: fixed destroy handler, so it doesn't segfault with the new refcounting scheme anymore. * gtk/gtkhandlebox.c: * gtk/gtkclist.c: * gtk/gtkentry.c: * gtk/gtkrange.c: * gtk/gtktext.c: * gtk/gtkviewport.c: enforced gdk_window_set_user_data (window, NULL); gdk_window_destroy (window); window = NULL; throughout the code.
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 6eddcde603..850af4800d 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -690,16 +690,16 @@ gtk_entry_unrealize (GtkWidget *widget)
{
gdk_window_set_user_data (entry->text_area, NULL);
gdk_window_destroy (entry->text_area);
+ entry->text_area = NULL;
gdk_cursor_destroy (entry->cursor);
+ entry->cursor = NULL;
}
if (widget->window)
{
gdk_window_set_user_data (widget->window, NULL);
gdk_window_destroy (widget->window);
+ widget->window = NULL;
}
-
- entry->text_area = NULL;
- widget->window = NULL;
}
static void