[cairo-commit]
cairo/test Makefile.am, 1.61, 1.62 buffer-diff.c, 1.5, 1.6
Carl Worth
commit at pdx.freedesktop.org
Fri Jul 15 10:40:02 PDT 2005
Committed by: cworth
Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv11394/test
Modified Files:
Makefile.am buffer-diff.c
Log Message:
* test/Makefile.am: Add new check-valgrind target for running the
test suite under the influence of valgrind.
* test/buffer-diff.c: (image_diff): Fix memory leak when reference
image is not found.
Index: Makefile.am
===================================================================
RCS file: /cvs/cairo/cairo/test/Makefile.am,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- Makefile.am 14 Jul 2005 18:17:12 -0000 1.61
+++ Makefile.am 15 Jul 2005 17:39:59 -0000 1.62
@@ -179,3 +179,6 @@
ps-surface.ps \
pdf-surface.pdf \
pdf-clip.pdf
+
+check-valgrind:
+ TESTS_ENVIRONMENT="libtool --mode=execute valgrind --tool=memcheck --leak-check=yes --show-reachable=yes" $(MAKE) check
\ No newline at end of file
Index: buffer-diff.c
===================================================================
RCS file: /cvs/cairo/cairo/test/buffer-diff.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- buffer-diff.c 11 May 2005 03:25:38 -0000 1.5
+++ buffer-diff.c 15 Jul 2005 17:39:59 -0000 1.6
@@ -112,8 +112,10 @@
return -1;
status = read_png_argb32 (filename_b, &buf_b, &width_b, &height_b, &stride_b);
- if (status)
+ if (status) {
+ free (buf_a);
return -1;
+ }
if (width_a != width_b ||
height_a != height_b ||
More information about the cairo-commit
mailing list