]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 24 Dec 2016 18:32:17 +0000 (13:32 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 24 Dec 2016 18:32:17 +0000 (13:32 -0500)
coders/psd.c

index e2e3041c0f7bb6f9e61f2f511eb3f7cf6df18d55..9249e2e96581a4e21ee21c0f6aac217134f72102 100644 (file)
@@ -1359,14 +1359,7 @@ static MagickBooleanType ReadPSDChannel(Image *image,
       ThrowBinaryException(CoderError,"UnableToDecompressImage",
         image->filename);
     }
-  if (mask != (Image *) NULL)
-    {
-      if (status != MagickFalse)
-        layer_info->mask.image=mask;
-      else
-        mask=DestroyImage(mask);
-    }
-
+  layer_info->mask.image=mask;
   return(status);
 }