Skip to content

Commit 04178de

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/662
1 parent 44c66e1 commit 04178de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: coders/mat.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1330,8 +1330,6 @@ RestoreMSCWarning
13301330
if (quantum_info != (QuantumInfo *) NULL)
13311331
quantum_info=DestroyQuantumInfo(quantum_info);
13321332
END_OF_READING:
1333-
if (clone_info)
1334-
clone_info=DestroyImageInfo(clone_info);
13351333
CloseBlob(image);
13361334

13371335

@@ -1349,6 +1347,8 @@ RestoreMSCWarning
13491347
Image *tmp=p;
13501348
if ((p->rows == 0) || (p->columns == 0)) {
13511349
p=p->previous;
1350+
if (tmp == image2)
1351+
image2=(Image *) NULL;
13521352
DeleteImageFromList(&tmp);
13531353
} else {
13541354
image=p;

0 commit comments

Comments
 (0)