-2017-03-07 7.0.4-9 Cristy <quetzlzacatenango@image...>
+2017-02-09 7.0.4-8 Dirk Lemstra <dirk@lem.....org>
+ * Fixed memory leak when creating nested exceptions in Magick++ (reference
+ https://www.imagemagick.org/discourse-server/viewtopic.php?f=23&p=142634)
+
+2017-02-07 7.0.4-8 Cristy <quetzlzacatenango@image...>
* Unbreak build without JPEG support (reference
https://github.com/ImageMagick/ImageMagick/pull/373).
message=formatExceptionMessage(exception_);
nestedException=(Exception *) NULL;
+ q=(Exception *) NULL;
LockSemaphoreInfo(exception_->semaphore);
if (exception_->exceptions != (void *) NULL)
{
exception_->description) != 0))
{
if (nestedException == (Exception *) NULL)
- nestedException=createException(p);
+ {
+ nestedException=createException(p);
+ q=nestedException;
+ }
else
{
- q=createException(p);
- nestedException->nested(q);
- nestedException=q;
+ Exception
+ *r;
+
+ r=createException(p);
+ q->nested(r);
+ q=r;
}
}
}