src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)

Fix memory leak.
reviewed by: plam
This commit is contained in:
Patrick Lam 2006-02-04 00:09:42 +00:00
parent a8e4d9eb39
commit c4c47a7654
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2006-02-03 Takashi Iwai <tiwai@suse.de>
reviewed by: plam
* src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
Fix memory leak.
2006-02-03 Dirk Mueller <dmueller@suse.de> 2006-02-03 Dirk Mueller <dmueller@suse.de>
reviewed by: plam reviewed by: plam

View File

@ -1849,6 +1849,7 @@ FcConfigAppFontAddFile (FcConfig *config,
} }
FcStrListDone (sublist); FcStrListDone (sublist);
} }
FcStrSetDestroy (subdirs);
return FcTrue; return FcTrue;
} }
@ -1896,6 +1897,7 @@ FcConfigAppFontAddDir (FcConfig *config,
} }
FcStrListDone (sublist); FcStrListDone (sublist);
} }
FcStrSetDestroy (subdirs);
return FcTrue; return FcTrue;
} }