[meta] Missing status check

We need to check the status on the created image before use.
This commit is contained in:
Chris Wilson 2009-08-17 11:38:52 +01:00
parent ce6a2cc5d2
commit eb33f842dc

View file

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