diff options
author | Julian Smith <jules@op59.net> | 2019-10-31 17:01:42 +0000 |
---|---|---|
committer | Julian Smith <jules@op59.net> | 2019-10-31 17:14:03 +0000 |
commit | b5bc53eb7223f8999882a5d8e2e35c27fe7a0b57 (patch) | |
tree | a0fc7238857894751a510485c73cc9b59352cb51 /base/gp_unix.c | |
parent | 255eef0a7d9d24962ebbcbb4b1858e44b803f16b (diff) | |
download | ghostpdl-b5bc53eb7223f8999882a5d8e2e35c27fe7a0b57.tar.gz |
Bug 701788: added comment about asn/valgrind detecting leaks in fontconfig.
Diffstat (limited to 'base/gp_unix.c')
-rw-r--r-- | base/gp_unix.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/gp_unix.c b/base/gp_unix.c index ce4fa0574..1557c2345 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); |