AcquireNextImage(image_info,image,exception);
if (GetNextImageInList(image) == (Image *) NULL)
- return((Image *) NULL);
+ return(DestroyImageList(image));
image=SyncNextImageInList(image);
}
exception);
if (status == MagickFalse)
- return((Image *) NULL);
+ return(DestroyImageList(image));
if ((image_info->ping == MagickFalse) && (jng_color_type >= 12))
{
exception);
if (status == MagickFalse)
- return((Image *) NULL);
+ return(DestroyImageList(image));
if (jng_alpha_compression_method == 0)
{
{
assert(color_image == (Image *) NULL);
assert(alpha_image == (Image *) NULL);
- return((Image *) NULL);
+ return(DestroyImageList(image));
}
if (color_image == (Image *) NULL)
{
assert(alpha_image == (Image *) NULL);
- return((Image *) NULL);
+ return(DestroyImageList(image));
}
(void) SeekBlob(color_image,0,SEEK_SET);
color_image_info=DestroyImageInfo(color_image_info);
if (jng_image == (Image *) NULL)
- return((Image *) NULL);
+ return(DestroyImageList(image));
if (logging != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
2*GetBlobSize(image));
if (status == MagickFalse)
- return((Image *) NULL);
+ return(DestroyImageList(image));
if (logging != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),