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
diff --git a/tools/valgrind.supp b/tools/valgrind.supp
index 944fa1e..d919c86 100644
--- a/tools/valgrind.supp
+++ b/tools/valgrind.supp
@@ -111,6 +111,16 @@
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
fun:inflateReset2