Hi, I am dealing with a memory leak, but I can’t understand what the problem is (I don’t have much experience with tools, so please excuse me if I ask for something obvious).
Basically, I have two lines as properties in my class, the first one that will be shown to the user will be retrieved in the main queue, and the one that is not required immediately will be restored in the background:
@property (nonatomic, strong) NSString *stringDefaultLocationAddress; @property (nonatomic, strong) NSString *stringCurrentLocationAddress; -(void)viewDidLoad{ ... dispatch_async(idQueue, ^(void) { [self recuperaDireccionActualEnBackground:currentUserLocation.coordinate]; }); } - (void)dealloc{ [self removeObserver:self forKeyPath:@"playerProfileNeedsUpdate"]; self.stringCurrentLocationAddress = nil; self.stringDefaultLocationAddress = nil; }
But I get this leak in tools:

The problem is with @ "% @ ..." placeholders in stringWithFormat, because if I just put @ "Test" at that moment, the leak will disappear, but I don’t know why it is leaking this and I would like to understand it.
Thanks in advance.
Rubs source share