diff options
author | Benjamin Otte <otte@gnome.org> | 2008-10-09 13:21:27 +0200 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2008-10-09 13:22:01 +0200 |
commit | c647c0bbca8694a14f5f5807b8349f0b0bb4987d (patch) | |
tree | 092ce8bb482d45e190509b9c32a7209da48e888d /test/imagediff.c | |
parent | f644d78dc138a7ba920a108dfb058e9f0fdb5302 (diff) | |
download | cairo-c647c0bbca8694a14f5f5807b8349f0b0bb4987d.tar.gz |
[TEST] make imagediff work again
It seems to have bitrotten
Diffstat (limited to 'test/imagediff.c')
-rw-r--r-- | test/imagediff.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/imagediff.c b/test/imagediff.c index 1cbd1b702..424ca6dcd 100644 --- a/test/imagediff.c +++ b/test/imagediff.c @@ -228,17 +228,18 @@ png_diff (const char *filename_a, surface_a, surface_b, surface_diff, result); - cairo_surface_destroy (surface_a); - cairo_surface_destroy (surface_b); - cairo_surface_destroy (surface_diff); + if (filename_diff) + _xunlink (filename_diff); - _xunlink (filename_diff); if (status == CAIRO_STATUS_SUCCESS && result->pixels_changed) { status = write_png (surface_diff, filename_diff); } + cairo_surface_destroy (surface_a); + cairo_surface_destroy (surface_b); + cairo_surface_destroy (surface_diff); return status; } |