From 6f929ff37ce277a12256b918751e2f3fca2fcb8a Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Wed, 17 Jun 2015 16:34:29 +0900 Subject: [PATCH] Fix a memory leak in FcFreeTypeQueryFace --- src/fcfreetype.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 809ff29..73c8809 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -1878,6 +1878,8 @@ FcFreeTypeQueryFace (const FT_Face face, * Drop our reference to the charset */ FcCharSetDestroy (cs); + if (foundry_) + free (foundry_); return pat;