]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 12 Oct 2013 00:17:29 +0000 (00:17 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 12 Oct 2013 00:17:29 +0000 (00:17 +0000)
MagickCore/attribute.c

index 02e7c8c9a57641f4ef218ef24ff9af16248159ff..89014c979f156345e4595948b611ddf08c2d7125 100644 (file)
@@ -1281,7 +1281,9 @@ MagickExport MagickBooleanType SetImageType(Image *image,const ImageType type,
     case UndefinedType:
       break;
   }
-  image->type=type;
   image_info=DestroyImageInfo(image_info);
-  return(status);
+  if (status == MagickFalse)
+    return(status);
+  image->type=type;
+  return(MagickTrue);
 }