We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44c66e1 commit 04178deCopy full SHA for 04178de
coders/mat.c
@@ -1330,8 +1330,6 @@ RestoreMSCWarning
1330
if (quantum_info != (QuantumInfo *) NULL)
1331
quantum_info=DestroyQuantumInfo(quantum_info);
1332
END_OF_READING:
1333
- if (clone_info)
1334
- clone_info=DestroyImageInfo(clone_info);
1335
CloseBlob(image);
1336
1337
@@ -1349,6 +1347,8 @@ RestoreMSCWarning
1349
1347
Image *tmp=p;
1350
1348
if ((p->rows == 0) || (p->columns == 0)) {
1351
p=p->previous;
+ if (tmp == image2)
+ image2=(Image *) NULL;
1352
DeleteImageFromList(&tmp);
1353
} else {
1354
image=p;
0 commit comments