Don't leak child_anchor_table. (#84425)

* gtk/gtktextbtree.c (_gtk_text_btree_unref): Don't leak
	child_anchor_table.  (#84425)

	* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't leak
	one_display_cache.  (#84424)
This commit is contained in:
Matthias Clasen 2002-06-09 20:43:45 +00:00
parent 79c202b506
commit 2c867d1e82
8 changed files with 61 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2002-06-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextbtree.c (_gtk_text_btree_unref): Don't leak
child_anchor_table. (#84425)
* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't leak
one_display_cache. (#84424)
Fri Jun 7 23:11:42 2002 Jonathan Blandford <jrb@gnome.org>
* gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing

View File

@ -1,3 +1,11 @@
2002-06-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextbtree.c (_gtk_text_btree_unref): Don't leak
child_anchor_table. (#84425)
* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't leak
one_display_cache. (#84424)
Fri Jun 7 23:11:42 2002 Jonathan Blandford <jrb@gnome.org>
* gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing

View File

@ -1,3 +1,11 @@
2002-06-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextbtree.c (_gtk_text_btree_unref): Don't leak
child_anchor_table. (#84425)
* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't leak
one_display_cache. (#84424)
Fri Jun 7 23:11:42 2002 Jonathan Blandford <jrb@gnome.org>
* gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing

View File

@ -1,3 +1,11 @@
2002-06-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextbtree.c (_gtk_text_btree_unref): Don't leak
child_anchor_table. (#84425)
* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't leak
one_display_cache. (#84424)
Fri Jun 7 23:11:42 2002 Jonathan Blandford <jrb@gnome.org>
* gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing

View File

@ -1,3 +1,11 @@
2002-06-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextbtree.c (_gtk_text_btree_unref): Don't leak
child_anchor_table. (#84425)
* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't leak
one_display_cache. (#84424)
Fri Jun 7 23:11:42 2002 Jonathan Blandford <jrb@gnome.org>
* gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing

View File

@ -1,3 +1,11 @@
2002-06-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextbtree.c (_gtk_text_btree_unref): Don't leak
child_anchor_table. (#84425)
* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't leak
one_display_cache. (#84424)
Fri Jun 7 23:11:42 2002 Jonathan Blandford <jrb@gnome.org>
* gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing

View File

@ -511,6 +511,11 @@ _gtk_text_btree_unref (GtkTextBTree *tree)
g_assert (g_hash_table_size (tree->mark_table) == 0);
g_hash_table_destroy (tree->mark_table);
tree->mark_table = NULL;
if (tree->child_anchor_table != NULL)
{
g_hash_table_destroy (tree->child_anchor_table);
tree->child_anchor_table = NULL;
}
g_object_unref (G_OBJECT (tree->insert_mark));
tree->insert_mark = NULL;

View File

@ -254,6 +254,13 @@ gtk_text_layout_finalize (GObject *object)
layout->rtl_context = NULL;
}
if (layout->one_display_cache)
{
GtkTextLineDisplay *tmp_display = layout->one_display_cache;
layout->one_display_cache = NULL;
gtk_text_layout_free_line_display (layout, tmp_display);
}
(* G_OBJECT_CLASS (parent_class)->finalize) (object);
}