diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-02-06 22:25:01 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-02-06 22:25:01 +0000 |
commit | 738eeba8d684a848aeceba3919e81c964b99e5da (patch) | |
tree | b4a9c6ef7145765f3336e1768d50f0f022bb24ae /gtk/gtktextbtree.c | |
parent | e77b5747b2a80668e23805a9ed104c2f6a5a9d48 (diff) | |
download | gdk-pixbuf-738eeba8d684a848aeceba3919e81c964b99e5da.tar.gz |
Actually free the lists. Pointed out by Morten Welinder.
Fri Feb 6 23:08:29 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextbtree.c (_gtk_text_btree_check):
* gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes):
* gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes):
Actually free the lists. Pointed out by Morten Welinder.
Diffstat (limited to 'gtk/gtktextbtree.c')
-rw-r--r-- | gtk/gtktextbtree.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c index f9c08fe11..6d340a74a 100644 --- a/gtk/gtktextbtree.c +++ b/gtk/gtktextbtree.c @@ -6698,15 +6698,15 @@ _gtk_text_btree_check (GtkTextBTree *tree) GtkTextLine *line; GtkTextLineSegment *seg; GtkTextTag *tag; - GSList *taglist = NULL; + GSList *all_tags, *taglist = NULL; int count; GtkTextTagInfo *info; /* * Make sure that the tag toggle counts and the tag root pointers are OK. */ - for (taglist = list_of_tags (tree->table); - taglist != NULL ; taglist = taglist->next) + all_tags = list_of_tags (tree->table); + for (taglist = all_tags; taglist != NULL ; taglist = taglist->next) { tag = taglist->data; info = gtk_text_btree_get_existing_tag_info (tree, tag); @@ -6790,8 +6790,7 @@ _gtk_text_btree_check (GtkTextBTree *tree) } } - g_slist_free (taglist); - taglist = NULL; + g_slist_free (all_tags); /* * Call a recursive procedure to do the main body of checks. |