mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 00:21:15 +03:00
Release memory
This commit is contained in:
parent
088e06da0e
commit
a8eb334f9d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user