]> granicus.if.org Git - imagemagick/commitdiff
Minor change in execution order.
authordirk <dirk@git.imagemagick.org>
Sun, 1 Feb 2015 11:49:00 +0000 (11:49 +0000)
committerdirk <dirk@git.imagemagick.org>
Sun, 1 Feb 2015 11:49:00 +0000 (11:49 +0000)
Magick++/lib/Exception.cpp

index 7a75b002460422b2d117dbe22c04762fb8887a04..e2b5098958401c9103c69d67bfdb5a057a5be731 100644 (file)
@@ -866,8 +866,8 @@ MagickPPExport void Magick::throwException(ExceptionInfo *exception_,
           }
       }
     }
-  UnlockSemaphoreInfo(exception_->semaphore);
   severity=exception_->severity;
+  UnlockSemaphoreInfo(exception_->semaphore);
 
   if ((quiet_) && (severity < MagickCore::ErrorException))
     {