mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 14:58:06 +02:00
[test/create-for-stream] Add the missing cairo_surface_finish().
Moments after pushing the new test case did I realise the issue... We do not attempt to write out the surface to the user stream until we perform the cairo_surface_destroy() by which point we have lost the ability to interrogate the error status. We can avoid this by explicitly calling cairo_surface_finish() and then checking the error status - and we see that the error is indeed reported correctly. No bug. Nothing to see here. Please move along. (Apart from the request for the status to be return from cairo_surface_destroy!)
This commit is contained in:
parent
1e7f0bd4d5
commit
76b9b18192
1 changed files with 1 additions and 0 deletions
|
|
@ -153,6 +153,7 @@ test_surface (const char *backend,
|
|||
|
||||
draw_to (surface);
|
||||
|
||||
cairo_surface_finish (surface);
|
||||
status = cairo_surface_status (surface);
|
||||
cairo_surface_destroy (surface);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue