Hi, i developing an application in which i found memory leak in following method how i remove leak?
- (id)initWithString:(NSString *)str attributes:(NSDictionary *)attributes
{
if ((self = [super init]))
{
_buffer = [str mutableCopy];
_attributes = [NSMutableArray arrayWithObjects:[ZAttributeRun attributeRunWithIndex:0 attributes:attributes], nil];
}
return self;
}
I founding leak near this line "_buffer = [str mutableCopy];"
In allocation stack trace i finding simultaneous memory allocation increasing as a CFString.
Thanks.