Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/746
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Sep 11, 2017
1 parent 2c2206b commit 76f94fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions MagickCore/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1645,8 +1645,6 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone,
exception);
if (status != MagickFalse)
{
if (cache_info->reference_count == 1)
cache_info->nexus_info=(NexusInfo **) NULL;
destroy=MagickTrue;
image->cache=clone_image.cache;
}
Expand Down
2 changes: 1 addition & 1 deletion coders/mpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@ static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image,
Initialize persistent pixel cache.
*/
status=PersistPixelCache(image,cache_filename,MagickFalse,&offset,
exception);
exception);
if (status == MagickFalse)
ThrowWriterException(CacheError,"UnableToPersistPixelCache");
if (GetNextImageInList(image) == (Image *) NULL)
Expand Down

0 comments on commit 76f94fa

Please sign in to comment.