TextView—Plug a memory leak

Thanks to Nelson Benitez for pointing this out.

https://bugzilla.gnome.org/show_bug.cgi?id=136059
This commit is contained in:
Daniel Boles 2017-02-22 21:24:45 +00:00
parent 449a17b56d
commit 2c9c871c5f

View File

@ -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;
}