diff --git a/wrlib/raster.c b/wrlib/raster.c index 48c28704..3c7d988d 100644 --- a/wrlib/raster.c +++ b/wrlib/raster.c @@ -578,6 +578,8 @@ RImage *RMakeTiledImage(RImage * tile, unsigned width, unsigned height) int has_alpha = HAS_ALPHA(tile); image = RCreateImage(width, height, has_alpha); + if (!image) + return NULL; d = image->data; s = tile->data;