summaryrefslogtreecommitdiff
path: root/gtk/gtktextlayout.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/gtktextlayout.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/gtktextlayout.c')
-rw-r--r--gtk/gtktextlayout.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index e414bf975d..bb76ae0801 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -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);
}