revert wrong cairo_font_face_destroy() insertion

This commit is contained in:
stefan schippers 2026-01-07 13:59:16 +01:00
parent 3a244967d1
commit 2a242cb80a
1 changed files with 0 additions and 2 deletions

View File

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