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; }