diff options
author | Daniel Boles <dboles@src.gnome.org> | 2017-02-22 21:24:45 +0000 |
---|---|---|
committer | Daniel Boles <dboles@src.gnome.org> | 2017-02-22 21:27:59 +0000 |
commit | 2c9c871c5f1200b8bfd63341c53af75fc1b8570b (patch) | |
tree | d6ac6fc1c1e7231f27fbbaf48ca6b185e7af4286 | |
parent | 449a17b56d8093ea1f4215a36643c0675e9512a7 (diff) | |
download | gtk+-2c9c871c5f1200b8bfd63341c53af75fc1b8570b.tar.gz |
TextView—Plug a memory leak
Thanks to Nelson Benitez for pointing this out.
https://bugzilla.gnome.org/show_bug.cgi?id=136059
-rw-r--r-- | gtk/gtktextview.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 1ab5f477e8..1e93738537 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -6351,6 +6351,8 @@ iter_line_is_rtl (GtkTextIter *iter, GtkTextLayout *layout) const gchar *text = pango_layout_get_text (display->layout); PangoDirection pango_dir = pango_find_base_dir (text, -1); + gtk_text_layout_free_line_display (layout, display); + return pango_dir == PANGO_DIRECTION_RTL; } |