mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-14 04:00:31 +01:00
snapshot: propagate status on finish
This commit is contained in:
parent
a505104013
commit
514d366cde
1 changed files with 8 additions and 3 deletions
|
|
@ -46,11 +46,16 @@ static cairo_status_t
|
|||
_cairo_surface_snapshot_finish (void *abstract_surface)
|
||||
{
|
||||
cairo_surface_snapshot_t *surface = abstract_surface;
|
||||
cairo_status_t status = CAIRO_STATUS_SUCCESS;
|
||||
|
||||
cairo_surface_finish (surface->clone);
|
||||
cairo_surface_destroy (surface->clone);
|
||||
if (surface->clone != NULL) {
|
||||
cairo_surface_finish (surface->clone);
|
||||
status = surface->clone->status;
|
||||
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
cairo_surface_destroy (surface->clone);
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
static cairo_status_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue