mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 14:38:13 +02:00
[meta] Missing status check
We need to check the status on the created image before use.
This commit is contained in:
parent
ce6a2cc5d2
commit
eb33f842dc
1 changed files with 2 additions and 0 deletions
|
|
@ -257,6 +257,8 @@ _cairo_meta_surface_acquire_source_image (void *abstract_surface,
|
|||
image = _cairo_image_surface_create_with_content (surface->content,
|
||||
surface->extents.width,
|
||||
surface->extents.height);
|
||||
if (unlikely (image->status))
|
||||
return image->status;
|
||||
|
||||
cairo_surface_set_device_offset (image,
|
||||
-surface->extents.x,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue