Fix a very serious memory leak in OUTLINE_FONT::getTextAsGlyphs().

This commit is contained in:
jean-pierre charras 2022-09-13 17:55:00 +02:00
parent 1a023f5dd0
commit bde2d388f1
1 changed files with 1 additions and 0 deletions

View File

@ -484,6 +484,7 @@ VECTOR2I OUTLINE_FONT::getTextAsGlyphs( BOX2I* aBBox, std::vector<std::unique_pt
}
hb_buffer_destroy( buf );
hb_font_destroy( referencedFont );
VECTOR2I cursorDisplacement( cursor.x * scaleFactor.x, -cursor.y * scaleFactor.y );