I got error message, but not sure how to get rid of it.
-- Method returns an Objective-C object with a +1 retain count (owning reference)
and
--Object allocated on line 46 is not referenced later in this execution path and has a retain count of +1 (object leaked)
for line aAA and bBB
+ ( CustConf* ) initEmptyCustConf {
CustConf* theObject = [[CustConf alloc] init];
theObject.ID = 0;
theObject.aAA= [[NSString alloc] initWithString:@""];
theObject.Number_Ndx = 0;
theObject.bBB = [[NSString alloc] initWithString:@""];
return [theObject autorelease];
}
The
[[NSString alloc] initWithString:@""];is unnecessary. Just use@"".Change your
initEmptyCustConfto this: