mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-20 06:40:31 +01:00
test-meta-surface: Add missing check for error from _cairo_surface_get_extents
This commit is contained in:
parent
866b2296b4
commit
84639e563d
1 changed files with 3 additions and 1 deletions
|
|
@ -303,7 +303,9 @@ _test_meta_surface_snapshot (void *abstract_other)
|
|||
cairo_rectangle_int16_t extents;
|
||||
cairo_surface_t *surface;
|
||||
|
||||
_cairo_surface_get_extents (other->image, &extents);
|
||||
status = _cairo_surface_get_extents (other->image, &extents);
|
||||
if (status)
|
||||
return (cairo_surface_t*) &_cairo_surface_nil;
|
||||
|
||||
surface = cairo_surface_create_similar (other->image,
|
||||
CAIRO_CONTENT_COLOR_ALPHA,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue