mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 13:28:03 +02:00
[test] Destroy test ouput image on failure.
Add the missing cairo_surface_destroy(). Sigh, less haste more speed.
This commit is contained in:
parent
0354457bed
commit
5712a2c619
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue