Commit 3e969e58e for imagemagick.org

commit 3e969e58ec67fc7a9aa0542759d878276aaf9d09
Author: Dirk Lemstra <dirk@lemstra.org>
Date:   Fri May 22 15:59:13 2026 +0200

    Added extra try catch in case a warning is thrown.

diff --git a/Magick++/lib/Color.cpp b/Magick++/lib/Color.cpp
index 050dcc488..4c802b0b7 100644
--- a/Magick++/lib/Color.cpp
+++ b/Magick++/lib/Color.cpp
@@ -148,7 +148,17 @@ Magick::Color::Color(const char *color_)
   initPixel();

   // Use operator = implementation
-  *this=color_;
+  try
+  {
+    *this=color_;
+  }
+  catch (...)
+  {
+    if (_pixelOwn)
+      delete _pixel;
+    _pixel=(PixelInfo *)NULL;
+    throw;
+  }
 }

 Magick::Color::Color(const Magick::Color &color_)
@@ -178,7 +188,17 @@ Magick::Color::Color(const std::string &color_)
   initPixel();

   // Use operator = implementation
-  *this=color_;
+  try
+  {
+    *this=color_;
+  }
+  catch (...)
+  {
+    if (_pixelOwn)
+      delete _pixel;
+    _pixel=(PixelInfo *)NULL;
+    throw;
+  }
 }

 Magick::Color::~Color(void)