From 8d9225ba78c05194fdffc05ee8bdd5c15b7367ff Mon Sep 17 00:00:00 2001 From: bungeman Date: Thu, 5 Feb 2015 09:11:46 -0800 Subject: Suppress another FontConfig 'leak'. FontConfig uses offsets for elements instead of pointers, so any value held by an element goes missing from memory checkers. Previous suppressions took care of rule copies and adds to elements, but value lists may be copied as well. When they are, values are copied, including the content of strings and matricies. Since value lists are effectively like Fc*Add functions (even calling the same underlying helpers), treat them as such and suppress any 'leaks' they may cause. Review URL: https://codereview.chromium.org/894863003 --- tools/valgrind.supp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tools/valgrind.supp') diff --git a/tools/valgrind.supp b/tools/valgrind.supp index 944fa1ecfd..d919c86126 100644 --- a/tools/valgrind.supp +++ b/tools/valgrind.supp @@ -110,6 +110,16 @@ fun:FcConfigSubstituteWithPat fun:FcFontRenderPrepare } +{ + #Same root cause as font_config_bug_2. + #The 'leak' is copies of font or pattern values into returned pattern values. + font_config_bug_4 + Memcheck:Leak + fun:*alloc + ... + fun:FcValue* + fun:FcFontRenderPrepare +} { zlib_bug_1 Memcheck:Cond -- cgit v1.2.3