]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1296
authorCristy <urban-warrior@imagemagick.org>
Sun, 9 Sep 2018 00:45:44 +0000 (20:45 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 9 Sep 2018 00:45:44 +0000 (20:45 -0400)
Magick++/lib/Exception.cpp

index acb61828f2a6a40962bf9ce3416a120ca0a068bf..f2f3ceba50ec71b10dc929e12e89d19ca1a758c1 100644 (file)
@@ -42,8 +42,7 @@ Magick::Exception::Exception(const Magick::Exception& original_)
 
 Magick::Exception::~Exception() throw()
 {
-  if (_nested != (Exception *) NULL)
-    delete _nested;
+  delete _nested;
 }
 
 Magick::Exception& Magick::Exception::operator=(
@@ -985,4 +984,4 @@ MagickPPExport void Magick::throwException(ExceptionInfo *exception_,
     case MagickCore::XServerWarning:
       throw WarningXServer(message,nestedException);
     }
-}
\ No newline at end of file
+}