diff options
author | Tim Janik <timj@gimp.org> | 1998-02-02 20:40:03 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-02-02 20:40:03 +0000 |
commit | 6b5e983f3d79e47b1a5fed716cdd05e7a4f5e717 (patch) | |
tree | c2fe54fd6c14913119ea5fabb9fba688a4cb323d /gtk/gtkviewport.c | |
parent | eeaefdf04fd1972f1c9bcd98997f940efe372d83 (diff) | |
download | gtk+-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/gtkviewport.c')
-rw-r--r-- | gtk/gtkviewport.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index da20db43d6..b899b61c8b 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -351,13 +351,12 @@ gtk_viewport_unrealize (GtkWidget *widget) gdk_window_set_user_data (widget->window, NULL); gdk_window_destroy (widget->window); + widget->window = NULL; gdk_window_set_user_data (viewport->view_window, NULL); gdk_window_destroy (viewport->view_window); + viewport->view_window = NULL; gdk_window_set_user_data (viewport->bin_window, NULL); gdk_window_destroy (viewport->bin_window); - - widget->window = NULL; - viewport->view_window = NULL; viewport->bin_window = NULL; } |