From: Cristy Date: Sat, 24 Dec 2016 18:32:17 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.4-1~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=720cee626a641a256fbb3d338de6039aaed7b896;p=imagemagick ... --- diff --git a/coders/psd.c b/coders/psd.c index e2e3041c0..9249e2e96 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -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); }