Monotone-Parent: efd9ade13655768d4cae7605de1142d71a2b3e0c

Monotone-Revision: 5391b9be06e00255b931f3a5c6535e3527ebd405

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-09-02T02:53:08
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2008-09-02 02:53:08 +00:00
parent c7e40104a9
commit 5b5a642ef6
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,9 @@
2008-09-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoObject.m ([SOGoObject
-initWithName:_nameinContainer:_container]): we no longer retain
the context, to avoid making a circular reference.
* SoObjects/SOGo/SOGoUser.m ([SOGoUser
-initWithLogin:newLoginroles:newRoles]): moved the core from init
here.

View File

@ -270,7 +270,6 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
if ((self = [self init]))
{
context = [[WOApplication application] context];
[context retain];
nameInContainer = [_name copy];
container = _container;
if ([self doesRetainContainer])
@ -285,7 +284,6 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
- (void) dealloc
{
[context release];
[owner release];
if ([self doesRetainContainer])
[container release];
@ -402,7 +400,7 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
{
obj = [[self soClass] lookupKey: lookupName inContext: localContext];
if (obj)
[obj bindToObject: self inContext: localContext];
obj = [obj bindToObject: self inContext: localContext];
}
if (obj)