diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 00dbefae04..763ef3b7c8 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -3660,7 +3660,8 @@ gtk_text_layout_move_iter_visually (GtkTextLayout *layout, gtk_text_iter_backward_char (iter); } - gtk_text_layout_free_line_display (layout, display); + if (display) + gtk_text_layout_free_line_display (layout, display); done: