From 2a242cb80a7ebd893cfe76647b5ad202629e3f21 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Wed, 7 Jan 2026 13:59:16 +0100 Subject: [PATCH] revert wrong cairo_font_face_destroy() insertion --- src/xinit.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/xinit.c b/src/xinit.c index fab2f240..819dbdac 100644 --- a/src/xinit.c +++ b/src/xinit.c @@ -2214,10 +2214,8 @@ static void resetcairo(int create, int clear, int force_or_resize) /* xctx->cairo_save_sfc is based on pixmap and pixmaps are not resizeable, so on resize * we must destroy & recreate everything. xctx->cairo_sfc can be resized using cairo_*_surface_set_size * being based on window */ - cairo_font_face_destroy(cairo_get_font_face(xctx->cairo_save_ctx)); cairo_destroy(xctx->cairo_save_ctx); cairo_surface_destroy(xctx->cairo_save_sfc); - cairo_font_face_destroy(cairo_get_font_face(xctx->cairo_ctx)); cairo_destroy(xctx->cairo_ctx); cairo_surface_destroy(xctx->cairo_sfc); xctx->cairo_save_ctx = NULL;