---
 x.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/x.c b/x.c
index 6a66451..0e50ecd 100644
--- a/x.c
+++ b/x.c
@@ -906,6 +906,8 @@ xloadfont(Font *f, FcPattern *pattern)
        f->height = f->ascent + f->descent;
        f->width = DIVCEIL(extents.xOff, strlen(ascii_printable));
 
+       FcPatternDestroy(configured);
+       FcPatternDestroy(matchFound);
        return 0;
 }
 
-- 
2.20.1


Reply via email to