I noticed that dispatch_release is never called on the semaphore. According to Apple's docs:
When your application no longer needs the semaphore, it should call dispatch_release to release its reference to the semaphore object and ultimately free its memory."
I would put it in myself with a pull request, but I'm not entirely sure where it should go.
I noticed that dispatch_release is never called on the semaphore. According to Apple's docs:
I would put it in myself with a pull request, but I'm not entirely sure where it should go.