diff --git a/SoObjects/Mailer/SOGoMailFolder.m b/SoObjects/Mailer/SOGoMailFolder.m index c257a3198..68c746789 100644 --- a/SoObjects/Mailer/SOGoMailFolder.m +++ b/SoObjects/Mailer/SOGoMailFolder.m @@ -283,16 +283,14 @@ static BOOL useAltNamespace = NO; /* create object */ - return [[[SOGoMailFolder alloc] initWithName:_key - inContainer:self] autorelease]; + return [SOGoMailFolder objectWithName: _key inContainer: self]; } - (id) lookupImap4Message: (NSString *) _key inContext: (id) _ctx { // TODO: we might want to check for existence prior controller creation - return [[[SOGoMailObject alloc] initWithName:_key - inContainer:self] autorelease]; + return [SOGoMailObject objectWithName: _key inContainer: self]; } - (id) lookupName: (NSString *) _key