1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 00:21:15 +03:00

Release memory

This commit is contained in:
Lucie Anglade 2020-05-08 00:28:30 +02:00
parent 088e06da0e
commit a8eb334f9d

View File

@ -113,6 +113,7 @@ class Font():
if ink_rect.height > font_bbox[3]:
font_bbox[3] = ink_rect.height
ffi.release(ink_rect)
self.font_bbox = font_bbox if font_bbox else []
self.cap_height = font_bbox[1] if font_bbox else 0