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.
This commit is contained in:
Tim Janik
1998-02-02 20:40:03 +00:00
committed by Tim Janik
parent eeaefdf04f
commit 6b5e983f3d
14 changed files with 146 additions and 31 deletions

View File

@ -1,5 +1,20 @@
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.
* gtk/gtkmain.c (gtk_propagate_event): fixed a bad, bad referencing
bug that could caused unreferencing of finalized objects.