From 70cafe1d1603718eb045a5fc835bb5d32e4c7d0e Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Thu, 25 Apr 2024 18:14:42 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20crash=20when=20a=20FontConfig?= =?UTF-8?q?=20object=20is=20destroyed=20early?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #2128. --- weasyprint/text/fonts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/weasyprint/text/fonts.py b/weasyprint/text/fonts.py index 588e7fc25..8c4726bf6 100644 --- a/weasyprint/text/fonts.py +++ b/weasyprint/text/fonts.py @@ -83,6 +83,7 @@ class FontConfiguration: :class:`weasyprint.CSS` to find fonts in ``@font-face`` rules. """ + _folder = None # required by __del__ when code stops before __init__ finishes def __init__(self): """Create a FreeType font configuration.