diff options
author | Dirk Lemstra <dirk@git.imagemagick.org> | 2018-03-11 11:16:14 +0100 |
---|---|---|
committer | Dirk Lemstra <dirk@git.imagemagick.org> | 2018-03-11 11:16:14 +0100 |
commit | 505062cdbd8b2bf7e2a13f0235af4144848202dd (patch) | |
tree | eccd0b08818c20d2fccb4a99617b8b8709c1b51f /coders/mat.c | |
parent | a46c5b3f84cab750ed3202198da05e6061e08029 (diff) | |
download | ImageMagick-505062cdbd8b2bf7e2a13f0235af4144848202dd.tar.gz |
Fixed incorrect blob referencing.
Diffstat (limited to 'coders/mat.c')
-rw-r--r-- | coders/mat.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/coders/mat.c b/coders/mat.c index f75300cd1..f3a922bfb 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -872,7 +872,6 @@ static Image *ReadMATImage(const ImageInfo *image_info,ExceptionInfo *exception) int logging; int sample_size; MagickOffsetType filepos=0x80; - BlobInfo *blob; unsigned int (*ReadBlobXXXLong)(Image *image); unsigned short (*ReadBlobXXXShort)(Image *image); @@ -1305,11 +1304,9 @@ ExitLoop: /* Remove page offsets added by RotateImage */ rotated_image->page.x=0; rotated_image->page.y=0; - - blob = rotated_image->blob; - rotated_image->blob = image->blob; rotated_image->colors = image->colors; - image->blob = blob; + DestroyBlob(rotated_image); + rotated_image->blob=ReferenceBlob(image->blob); AppendImageToList(&image,rotated_image); DeleteImageFromList(&image); } |