]> granicus.if.org Git - libass/commit
Fix fontconfig memory leaks
authorGrigori Goronzy <greg@blackbox>
Fri, 24 Jul 2009 08:01:41 +0000 (10:01 +0200)
committerGrigori Goronzy <greg@blackbox>
Fri, 24 Jul 2009 13:39:20 +0000 (15:39 +0200)
commit074399f7dcb4c94cc86d87250c05ba497fe26e45
tree4e2108ad71c63bc5964c5eac100e8950707b18ae
parent417a5b32da0d3b345299190ba3198cfed6f98275
Fix fontconfig memory leaks

Do not manually use FcConfigFilename; passing a NULL pointer to
FcConfigParseAndLoad is just as effective and also avoids a memory leak
since the string allocated by FcConfigFilename was never freed.

Free FcConfig instance in fontconfig_done; since we're not using the
default configuration anymore it doesn't make sense to keep the
configuration around.

Leaks were found by valgrind/memcheck.
libass/ass_fontconfig.c