Skip to content

Commit

Permalink
[TEST] make imagediff work again
Browse files Browse the repository at this point in the history
It seems to have bitrotten
  • Loading branch information
Benjamin Otte committed Oct 9, 2008
1 parent f644d78 commit c647c0b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/imagediff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c647c0b

Please sign in to comment.