diff --git a/screenshot_darwin.go b/screenshot_darwin.go index 17dd78f..d0839f2 100644 --- a/screenshot_darwin.go +++ b/screenshot_darwin.go @@ -49,6 +49,7 @@ static CGImageRef capture(CGDirectDisplayID id, CGRect diIntersectDisplayLocal, } }]; dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER); + dispatch_release(semaphore); return result; #else CGImageRef img = CGDisplayCreateImageForRect(id, diIntersectDisplayLocal);