diff options
-rw-r--r-- | src/cairo-xlib-source.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-xlib-source.c b/src/cairo-xlib-source.c index 56dff657..5874f8d8 100644 --- a/src/cairo-xlib-source.c +++ b/src/cairo-xlib-source.c @@ -294,7 +294,7 @@ render_pattern (cairo_xlib_surface_t *dst, extents->height); if (src->base.type != CAIRO_SURFACE_TYPE_XLIB) { cairo_surface_destroy (&src->base); - return None; + return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_NO_MEMORY)); } map_extents = *extents; @@ -1005,7 +1005,7 @@ surface_source (cairo_xlib_surface_t *dst, if (xsrc->base.type != CAIRO_SURFACE_TYPE_XLIB) { cairo_surface_destroy (src); cairo_surface_destroy (&xsrc->base); - return None; + return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_NO_MEMORY)); } if (_cairo_surface_is_image (src)) { |