Commit e2f9f28a authored by Akira TAGOH's avatar Akira TAGOH
Browse files

Fix a memory leak in FcFreeTypeQuery*()

Fixes fontconfig/fontconfig#170
parent 1a0391c0
......@@ -2121,9 +2121,14 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
free (foundry_);
if (master)
/* TODO: How to free master?! */
if (face->glyph)
FT_Done_MM_Var (face->glyph->library, master);
free (master);
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