From 535d6eda03f3362a8e58b60db36d6fa7b9fbcccc Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 23 Nov 2017 17:20:32 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/875 --- coders/svg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/svg.c b/coders/svg.c index 3190b5cd5..69faeaaa7 100644 --- a/coders/svg.c +++ b/coders/svg.c @@ -3081,7 +3081,7 @@ static Image *ReadSVGImage(const ImageInfo *image_info,ExceptionInfo *exception) cairo_surface=cairo_image_surface_create_for_data(pixels, CAIRO_FORMAT_ARGB32,(int) image->columns,(int) image->rows,(int) stride); - if (cairo_surface == (cairo_surface_t *) NULL) + if (cairo_surface_status() != CAIRO_STATUS_SUCCESS) { pixel_info=RelinquishVirtualMemory(pixel_info); g_object_unref(svg_handle); -- 2.50.1