]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <mikayla-grace@urban-warrior.org>
Mon, 22 Apr 2019 11:22:55 +0000 (07:22 -0400)
committerCristy <mikayla-grace@urban-warrior.org>
Mon, 22 Apr 2019 11:22:55 +0000 (07:22 -0400)
MagickCore/log.c

index 33f2815ebfe5199ae8ac18f51ff16e47859d31e1..f75191c348f9d88510b7f651c6457c48fc91d29d 100644 (file)
@@ -892,9 +892,8 @@ static void *DestroyLogElement(void *log_info)
     p->path=DestroyString(p->path);
   if (p->filename != (char *) NULL)
     p->filename=DestroyString(p->filename);
-  if (p->event_semaphore == (SemaphoreInfo *) NULL)
-    ActivateSemaphoreInfo(&p->event_semaphore);
-  RelinquishSemaphoreInfo(&p->event_semaphore);
+  if (p->event_semaphore != (SemaphoreInfo *) NULL)
+    RelinquishSemaphoreInfo(&p->event_semaphore);
   p=(LogInfo *) RelinquishMagickMemory(p);
   return((void *) NULL);
 }