summaryrefslogtreecommitdiff
path: root/gtk/font_pango.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/font_pango.c')
-rw-r--r--gtk/font_pango.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/font_pango.c b/gtk/font_pango.c
index c1bddd89d..e83619ad8 100644
--- a/gtk/font_pango.c
+++ b/gtk/font_pango.c
@@ -250,6 +250,7 @@ bool nsfont_paint(int x, int y, const char *string, size_t length,
nsgtk_set_colour(fstyle->foreground);
pango_cairo_show_layout_line(current_cr, line);
+ g_object_unref(layout);
pango_font_description_free(desc);
return true;