[test] Destroy test ouput image on failure.

Add the missing cairo_surface_destroy(). Sigh, less haste more speed.
This commit is contained in:
Chris Wilson 2008-08-19 15:17:45 +01:00
parent 0354457bed
commit 5712a2c619

View file

@ -641,6 +641,7 @@ cairo_test_for_target (cairo_test_context_t *ctx,
if (diff_status) {
cairo_test_log (ctx, "Error: Failed to write output image: %s\n",
cairo_status_to_string (diff_status));
cairo_surface_destroy (test_image);
ret = CAIRO_TEST_FAILURE;
goto UNWIND_CAIRO;
}