]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 24 Sep 2014 16:49:02 +0000 (16:49 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 24 Sep 2014 16:49:02 +0000 (16:49 +0000)
MagickCore/blob.c

index abb367d9f34287f843d2d9dc6cb426c361023265..a9f623f676db9136660af442f70ede39af4bbf0e 100644 (file)
@@ -747,21 +747,16 @@ MagickPrivate void DisassociateBlob(Image *image)
   assert(image->blob != (BlobInfo *) NULL);
   assert(image->blob->signature == MagickSignature);
   clone=MagickFalse;
-  LockSemaphoreInfo(image->semaphore);
   LockSemaphoreInfo(image->blob->semaphore);
   assert(image->blob->reference_count >= 0);
   if (image->blob->reference_count > 1)
     clone=MagickTrue;
   UnlockSemaphoreInfo(image->blob->semaphore);
   if (clone == MagickFalse)
-    {
-      UnlockSemaphoreInfo(image->semaphore);
-      return;
-    }
+    return;
   blob=CloneBlobInfo(image->blob);
   DestroyBlob(image);
   image->blob=blob;
-  UnlockSemaphoreInfo(image->semaphore);
 }
 \f
 /*