Can someone explain to me why this code is causing a memory leak if I try to analyze it using the "Instrument" tool? I would be grateful if someone could explain how to get rid of this leak. ARC is enabled
NSOperationQueue* queue = [[NSOperationQueue alloc] init]; [queue addOperationWithBlock:^{ CLLocationManager* manager = [[CLLocationManager alloc] init]; (void)manager; }]; [queue waitUntilAllOperationsAreFinished];
1.4m articles
1.4m replys
5 comments
56.9k users