diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-25 09:05:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-25 10:09:26 +0100 |
commit | 1e1f2e677fbf6c8043318450640f54c892699d55 (patch) | |
tree | f79fb38124ed5f48b75581b80b5ad60edbf3183b /vcl/workben | |
parent | 651e1f6cda04468394c65c2fd88d915902ac0306 (diff) |
Direct-leak fix effort
Change-Id: If267c2d40b9e511a8e13be34bb7ba09048a736c5
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/wmffuzzer.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/workben/wmffuzzer.cxx b/vcl/workben/wmffuzzer.cxx index 2300f181c673..1a05174e7502 100644 --- a/vcl/workben/wmffuzzer.cxx +++ b/vcl/workben/wmffuzzer.cxx @@ -23,6 +23,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) SvMemoryStream aStream(const_cast<uint8_t*>(data), size, StreamMode::READ); GDIMetaFile aGDIMetaFile; (void)ReadWindowMetafile(aStream, aGDIMetaFile); + //fontconfigs alloc mechanism is too complicated for lsan/valgrind so + //force the fontconfig options to be released now, they are demand loaded + //so will be recreated if necessary + SvpSalGraphics::getPlatformGlyphCache().ClearFontOptions(); return 0; } |