the initializer has
UID = [inUID retain];
service = inService;
the UID is retained but service is not. Must
the caller initialize or is this a circular dependency ?
(If I retain service, my plugin crashes when trying to create a second
account with add account.
Crashing stops, when I retain service, but this may cause amemory leak)
The stack is:
#0 0x003d6d46 in -[AIListObject initWithUID:service:] at
AIListObject.m:49
#1 0x003b48f8 in -[AIAccount(Abstract)
initWithUID:internalObjectID:service:] at AIAbstractAccount.m:70
#2 0x003b10c8 in -[AIService accountWithUID:internalObjectID:] at
AIService.m:65
#3 0x00125646 in -[AdiumAccounts createAccountWithService:UID:] at
AdiumAccounts.m:141
#4 0x000f56b2 in -[AIAccountController createAccountWithService:UID:]
at AIAccountController.m:158
#5 0x003c738c in -[AIAccountMenu selectServiceType:] at
AIAccountMenu.m:508
#6 0x903444cb in -[NSApplication sendAction:to:from:]
The instance variable service of AIListObject causes crashes. I am
subclassing class AIAccount, which itself
is a subclass of AIListObject.