Skip to content

Commit

Permalink
free image info struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Feb 15, 2024
1 parent 31bc888 commit fd4d262
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coders/dng.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@ static Image *InvokeDNGDelegate(const ImageInfo *image_info,Image *image,
status=InvokeDelegate(read_info,image,"dng:decode",(char *) NULL,exception);
image=DestroyImage(image);
if (status == MagickFalse)
return(image);
{
read_info=DestroyImageInfo(read_info);
return(image);
}
*read_info->magick='\0';
(void) FormatLocaleString(read_info->filename,MagickPathExtent,"%s.tif",
read_info->unique);
Expand Down

0 comments on commit fd4d262

Please sign in to comment.