Commit 61573ad5 authored by Akira TAGOH's avatar Akira TAGOH
Browse files

Fix memory leaks

parent 71d6866d
Pipeline #110174 passed with stage
in 4 minutes and 52 seconds
......@@ -2200,6 +2200,17 @@ bail2:
FcCharSetDestroy (cs);
bail1:
FcPatternDestroy (pat);
if (master)
{
#ifdef HAVE_FT_DONE_MM_VAR
if (face->glyph)
FT_Done_MM_Var (face->glyph->library, master);
#else
free (master);
#endif
}
if (!nm_share && name_mapping)
free (name_mapping);
if (foundry_)
free (foundry_);
bail0:
......@@ -2360,6 +2371,8 @@ bail:
if (face)
FT_Done_Face (face);
FT_Done_FreeType (ftLibrary);
if (nm)
free (nm);
return ret;
}
......
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