On modern iOS, dispatch_queue_t
values are Objective-C objects and are managed by ARC so it's not necessary to call dispatch_release
on them. Is the same true for dispatch_group_t
values and their corresponding dispatch_group_release
call?
Asked
Active
Viewed 662 times
1

ide
- 19,942
- 5
- 64
- 106
-
Be careful of what you are asking, the answer of the question in your question's title is different from the answer of the one in the body. – Pochi Jul 22 '14 at 04:10
2 Answers
3
No, if your deployment target is iOS 6+ then you do not have to call the release function for any object managed by GCD.
This question has already been asked several times but the most complete answer is here:
2
Yes, this is true for all subclasses of dispatch_object_t
including dispatch_group_t
.
There is actually no dispatch_group_release
call, the only C release API for these objects is dispatch_release
.
See headerdoc in dispatch/object.h
for more details.

das
- 3,651
- 17
- 19