Manually overriding setXXX on properties sometimes warns about a possible leak...

When overriding the default behavior of a synthesized property's setter method, I get a warning from AppCode in certain situations - see attached project (PropertySetterTestViewController.m)...

Basically I got these two pretty identical properties - only difference is my implementation of the setter methods:

- (void)setName:(NSString *)newName {
    [_name release];
    _name = newName;
    [_name retain];

- (void)setAddress:(NSString *)newAddress {
    [_address release];
    _address = [newAddress retain];

AppCode warns med about the [_name retain]; line - nothing wrong in the setAddress method...

I don't know the mechanics you use for determining possible leaks, but it would be nice if it could handle both these implementations... :-)


Fixed in latest build (624).