Commit e2f9f28a authored by Akira TAGOH's avatar Akira TAGOH

Fix a memory leak in FcFreeTypeQuery*()

Fixes #170
parent 1a0391c0
Pipeline #51411 failed with stage
in 16 minutes and 13 seconds
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment