From c4c47a7654196f37b625f337192b235e558ab890 Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Sat, 4 Feb 2006 00:09:42 +0000 Subject: [PATCH] src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir) Fix memory leak. reviewed by: plam --- ChangeLog | 7 +++++++ src/fccfg.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index fa13d7b..de2c143 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-02-03 Takashi Iwai + reviewed by: plam + + * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir) + + Fix memory leak. + 2006-02-03 Dirk Mueller reviewed by: plam diff --git a/src/fccfg.c b/src/fccfg.c index c533006..0e17edb 100644 --- a/src/fccfg.c +++ b/src/fccfg.c @@ -1849,6 +1849,7 @@ FcConfigAppFontAddFile (FcConfig *config, } FcStrListDone (sublist); } + FcStrSetDestroy (subdirs); return FcTrue; } @@ -1896,6 +1897,7 @@ FcConfigAppFontAddDir (FcConfig *config, } FcStrListDone (sublist); } + FcStrSetDestroy (subdirs); return FcTrue; }