diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-05-15 17:40:26 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-05-15 21:31:03 +0100 |
commit | 31596cf2b298054bbd3e340ae77a3388eadc0d8b (patch) | |
tree | b7e966c7a3969aa0fd729ed89fcb06f82f11c7e9 /src/cairo-png.c | |
parent | 791a6fa399894e735d522781b15b7f18c3ecd4d1 (diff) | |
download | cairo-31596cf2b298054bbd3e340ae77a3388eadc0d8b.tar.gz |
[debug] Check image contents using memcheck.
As an aide to tracking down the source of uninitialised reads, run
VALGRIND_CHECK_MEM_IS_DEFINED() over the contents of image surfaces at the
boundary between backends, e.g. upon setting a glyph image or acquiring
a source image.
Diffstat (limited to 'src/cairo-png.c')
-rw-r--r-- | src/cairo-png.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-png.c b/src/cairo-png.c index c66432868..d4f04760b 100644 --- a/src/cairo-png.c +++ b/src/cairo-png.c @@ -654,6 +654,8 @@ read_png (struct png_read_closure_t *png_closure) _cairo_image_surface_assume_ownership_of_data ((cairo_image_surface_t*)surface); data = NULL; + _cairo_debug_check_image_surface_is_defined (surface); + status = _cairo_memory_stream_destroy (png_closure->png_data, &mime_data, &mime_data_length); |