summaryrefslogtreecommitdiff
path: root/gtk/gtkstatusbar.c
diff options
context:
space:
mode:
authorTim Janik <timj@gimp.org>1998-03-12 07:28:41 +0000
committerTim Janik <timj@src.gnome.org>1998-03-12 07:28:41 +0000
commita8afd462c0d23eb1fed39394a523b364a4cdca39 (patch)
tree968bce7fcef1d8bdbb9dd2750d013701364650e7 /gtk/gtkstatusbar.c
parent093dfedf74d607085b163bd254dea8682d0ba774 (diff)
downloadgtk+-a8afd462c0d23eb1fed39394a523b364a4cdca39.tar.gz
applied gtk-shige-980311-0.patch.gz, which removes the erronerous
Thu Mar 12 07:43:33 1998 Tim Janik <timj@gimp.org> * gdk/gdk.h: * gdk/gdkvisual.c: applied gtk-shige-980311-0.patch.gz, which removes the erronerous gdk_query_visuals() function in favour of gdk_list_visuals() which does a correct job. * gtk/gtkcontainer.h: applied gtk-draco-980311-0.patch.gz which fixes a class cast check. * gtk/gtkspinbutton.c: applied gtk-hamann_jeske-980312-0.patch.gz about '+' sign acceptance. * gtk/gtknotebook.c: applied gtk-hamann_jeske-980311-1.patch.gz which cares about delayed tab label creation.
Diffstat (limited to 'gtk/gtkstatusbar.c')
-rw-r--r--gtk/gtkstatusbar.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c
index 782f5718cd..66af6f4406 100644
--- a/gtk/gtkstatusbar.c
+++ b/gtk/gtkstatusbar.c
@@ -335,6 +335,11 @@ gtk_statusbar_destroy (GtkObject *object)
g_slist_free (statusbar->messages);
statusbar->messages = NULL;
+ for (list = statusbar->keys; list; list = list->next)
+ g_free (list->data);
+ g_slist_free (statusbar->keys);
+ statusbar->keys = NULL;
+
GTK_OBJECT_CLASS (parent_class)->destroy (object);
}
@@ -349,10 +354,5 @@ gtk_statusbar_finalize (GtkObject *object)
statusbar = GTK_STATUSBAR (object);
- for (list = statusbar->keys; list; list = list->next)
- g_free (list->data);
- g_slist_free (statusbar->messages);
- statusbar->keys = NULL;
-
GTK_OBJECT_CLASS (parent_class)->finalize (object);
}