I'm getting a leak memory error with a custom object (called LinesOfText class) returned by a function. This is a simple example with no detailed implementation:
-(void)myMethod(){
LinesOfText *linesOfText = [self linesOftext:@"this is my text"];
}
-(LinesOfText *)linesOftext:(NSString *)_string{
LinesOfText *linesOfText = [[linesOfText alloc] init];
[linesOfText propsOfTextLine:_string];
return linesOfText;
}
I'm not sure where I've to release the object