test-meta-surface: Add missing check for error from _cairo_surface_get_extents

This commit is contained in:
Carl Worth 2007-04-10 14:11:43 -07:00
parent 866b2296b4
commit 84639e563d

View file

@ -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,