]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/875
authorCristy <urban-warrior@imagemagick.org>
Thu, 23 Nov 2017 22:20:32 +0000 (17:20 -0500)
committerCristy <urban-warrior@imagemagick.org>
Thu, 23 Nov 2017 22:20:32 +0000 (17:20 -0500)
coders/svg.c

index 3190b5cd5b4c747a72f8317e1219f54e628b0ceb..69faeaaa7f5449584e7c46806b23125a15f29fe4 100644 (file)
@@ -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);