forked from AuroraMiddleware/gtk
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:
parent
79c202b506
commit
2c867d1e82
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -511,7 +511,12 @@ _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;
|
||||
g_object_unref (G_OBJECT (tree->selection_bound_mark));
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user