summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-30 16:40:01 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-30 16:40:01 -0300
commit427e761a5836abb3696f20673450ff3c6b805c2f (patch)
tree8b5a9a868a61d54361815c15a85558cd0dbd1dbd
parent1123d0b0b0c486ff0b0b12c7c037d875efc4082f (diff)
downloadeeshow-427e761a5836abb3696f20673450ff3c6b805c2f.tar.gz
eeshow-427e761a5836abb3696f20673450ff3c6b805c2f.tar.bz2
eeshow-427e761a5836abb3696f20673450ff3c6b805c2f.zip
cairo-font.supp: ignore memory leaks from Cairo's "holdover cache"
https://lists.cairographics.org/archives/cairo/2013-October/024756.html
-rw-r--r--Makefile5
-rw-r--r--cairo-font.supp20
2 files changed, 23 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f9d421c..fde6bff 100644
--- a/Makefile
+++ b/Makefile
@@ -152,8 +152,9 @@ newref:
#----- Memory leak checking ---------------------------------------------------
-SUPP = dl-init
+SUPP = dl-init cairo-font
leak: $(NAME)
- valgrind --leak-check=full $(SUPP:%=--suppressions=%.supp) \
+ valgrind --leak-check=full --num-callers=50 \
+ $(SUPP:%=--suppressions=%.supp) \
eeshow -N 1 $(NEO900_HW)/neo900.pro -- png >/dev/null
diff --git a/cairo-font.supp b/cairo-font.supp
new file mode 100644
index 0000000..a670cfb
--- /dev/null
+++ b/cairo-font.supp
@@ -0,0 +1,20 @@
+{
+ <cairo_select_font_face>
+ Memcheck:Leak
+ ...
+ fun:cairo_toy_font_face_create
+ fun:cairo_select_font_face
+ ...
+}
+
+{
+ <cairo_text_extents>
+ Memcheck:Leak
+ ...
+ fun:FcConfigParseAndLoad
+ ...
+ fun:cairo_scaled_font_create
+ ...
+ fun:cairo_text_extents
+ ...
+}