summaryrefslogtreecommitdiff
path: root/gtk/gtktextbtree.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-06-09 20:43:45 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-06-09 20:43:45 +0000
commit2c867d1e826ea4acc4aab90bea0dfd67c26648d1 (patch)
tree39d26478888518d5034bec9c863da965a98e638c /gtk/gtktextbtree.c
parent79c202b5060c0006f557e2462b34d5a6d60b3c30 (diff)
downloadgtk+-2c867d1e826ea4acc4aab90bea0dfd67c26648d1.tar.gz
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)
Diffstat (limited to 'gtk/gtktextbtree.c')
-rw-r--r--gtk/gtktextbtree.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index 30c66e4a70..0ebe88b16f 100644
--- a/gtk/gtktextbtree.c
+++ b/gtk/gtktextbtree.c
@@ -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));