]> granicus.if.org Git - imagemagick/commitdiff
Minor refactor.
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 4 Mar 2018 11:32:25 +0000 (12:32 +0100)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 4 Mar 2018 11:32:25 +0000 (12:32 +0100)
coders/mvg.c

index 85295c0d11aa5e94d75a1de1f08a2de4a572c20a..fccf361c8828d170747153ad73de5a74774572f0 100644 (file)
@@ -199,8 +199,7 @@ static Image *ReadMVGImage(const ImageInfo *image_info,ExceptionInfo *exception)
   if (SetImageBackgroundColor(image,exception) == MagickFalse)
     {
       draw_info=DestroyDrawInfo(draw_info);
-      image=DestroyImageList(image);
-      return((Image *) NULL);
+      return(DestroyImageList(image));
     }
   /*
     Render drawing.