{
(void) ThrowMagickException(exception,GetMagickModule(),CoderError,
libraw_strerror(errcode),"`%s'",image->filename);
+ libraw_close(raw_info);
return(DestroyImageList(image));
}
#if defined(MAGICKCORE_WINDOWS_SUPPORT) && defined(_MSC_VER) && (_MSC_VER > 1310)
/*
Set DNG image metadata.
*/
- if (raw_info->color.profile)
+ if (raw_info->color.profile != NULL)
{
profile=BlobToStringInfo(raw_info->color.profile,
raw_info->color.profile_length);
}
}
#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0,18)
- if (raw_info->idata.xmpdata)
+ if (raw_info->idata.xmpdata != NULL)
{
profile=BlobToStringInfo(raw_info->idata.xmpdata,
raw_info->idata.xmplen);