The ARC migration tool has problems with this:
NSURL *fileURL = [NSURL fileURLWithPath:path]; AudioFileOpenURL((CFURLRef)fileURL, kAudioFileReadPermission, 0, &fileID);
In particular, he is not sure whether he should use __bridge or __bridge_retained. And me too.
-fileURLWithPath returns an object with automatic implementation, and in this place I do not own the fileURL file. But at the same time, the object has a conservation rate of at least +1.
I would say that this should only be done with __bridge.
openfrog
source share