diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-24 10:05:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-24 11:43:25 +0000 |
commit | 38e729223a4cdca87ef1baccfc533156c80b5dab (patch) | |
tree | 6e7047b368fa9a0271dc59a910669e3d8cbf2c79 /vcl/inc | |
parent | d776eeab752fd313226a7570c3ed4d8e964b4406 (diff) |
ofz: explicitly release fontconfig options on every iteration
fontconfigs alloc mechanism is too complicated for lsan/valgrind so force the
fontconfig options to be released at the end of every iteration, they are
demand loaded so will be recreated if necessary on next use
Change-Id: I061117b1fb8136298593a165847f78eabe008f0f
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/unx/glyphcache.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/unx/glyphcache.hxx b/vcl/inc/unx/glyphcache.hxx index 4c0ce0d2695a..8d66fbb23eac 100644 --- a/vcl/inc/unx/glyphcache.hxx +++ b/vcl/inc/unx/glyphcache.hxx @@ -67,6 +67,7 @@ public: void UncacheFont( FreetypeFont& ); void ClearFontCache(); void InvalidateAllGlyphs(); + void ClearFontOptions(); private: friend class FreetypeFont; @@ -124,6 +125,7 @@ public: FT_Face GetFtFace() const; int GetLoadFlags() const { return (mnLoadFlags & ~FT_LOAD_IGNORE_TRANSFORM); } const FontConfigFontOptions* GetFontOptions() const; + void ClearFontOptions(); bool NeedsArtificialBold() const { return mbArtBold; } bool NeedsArtificialItalic() const { return mbArtItalic; } |