[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1786-gb5bc53e
[email protected] (Julian Smith) Thu, 31 Oct 2019 17:23:04 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, master has been updated
via b5bc53eb7223f8999882a5d8e2e35c27fe7a0b57 (commit)
from 255eef0a7d9d24962ebbcbb4b1858e44b803f16b (commit)
----------------------------------------------------------------------
commit b5bc53eb7223f8999882a5d8e2e35c27fe7a0b57
Author: Julian Smith <[email protected]>
Date: Thu Oct 31 17:01:42 2019 +0000
Bug 701788: added comment about asn/valgrind detecting leaks in fontconfig.
diff --git a/base/gp_unix.c b/base/gp_unix.c
index ce4fa05..1557c23 100644
--- a/base/gp_unix.c
+++ b/base/gp_unix.c
@@ -370,6 +370,12 @@ void *gp_enumerate_fonts_init(gs_memory_t *mem)
os = FcObjectSetBuild(FC_FILE, FC_OUTLINE,
FC_FAMILY, FC_WEIGHT, FC_SLANT,
NULL);
+ /* We free the data allocated by FcFontList() when
+ gp_enumerate_fonts_free() calls FcFontSetDestroy(), but FcFontSetDestroy()
+ has been seen to leak blocks according to valgrind and asan. E.g. this can
+ be seen by running:
+ ./sanbin/gs -dNODISPLAY -dBATCH -dNOPAUSE -c "/A_Font findfont"
+ */
state->font_list = FcFontList(0, pat, os);
FcPatternDestroy(pat);
FcObjectSetDestroy(os);
Summary of changes:
base/gp_unix.c | 6 ++++++
1 file changed, 6 insertions(+)