Fix a memory leak in FcFreeTypeQuery*()
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/170
This commit is contained in:
parent
1a0391c099
commit
e2f9f28aed
|
@ -2121,9 +2121,14 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
|
|||
free (foundry_);
|
||||
|
||||
if (master)
|
||||
{
|
||||
/* TODO: How to free master?! */
|
||||
}
|
||||
{
|
||||
#ifdef HAVE_FT_DONE_MM_VAR
|
||||
if (face->glyph)
|
||||
FT_Done_MM_Var (face->glyph->library, master);
|
||||
#else
|
||||
free (master);
|
||||
#endif
|
||||
}
|
||||
|
||||
return pat;
|
||||
|
||||
|
|
Loading…
Reference in New Issue