mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 13:28:03 +02:00
paginated: Add missing error check for _cairo_surface_get_extents
This commit is contained in:
parent
41911002d7
commit
381f0bcafc
1 changed files with 3 additions and 1 deletions
|
|
@ -517,7 +517,9 @@ _cairo_paginated_surface_snapshot (void *abstract_other)
|
|||
cairo_rectangle_int16_t extents;
|
||||
cairo_surface_t *surface;
|
||||
|
||||
_cairo_surface_get_extents (other->target, &extents);
|
||||
status = _cairo_surface_get_extents (other->target, &extents);
|
||||
if (status)
|
||||
return (cairo_surface_t*) &_cairo_surface_nil;
|
||||
|
||||
surface = _cairo_paginated_surface_create_image_surface (other,
|
||||
extents.width,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue