Commit 514d366c authored by Chris Wilson's avatar Chris Wilson 🤔
Browse files

snapshot: propagate status on finish

parent a5051040
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment