Index: src/XMPPContact.m ================================================================== --- src/XMPPContact.m +++ src/XMPPContact.m @@ -23,10 +23,31 @@ #import "XMPPContact.h" #import "XMPPMessage.h" #import "XMPPConnection.h" @implementation XMPPContact +- init +{ + self = [super init]; + + @try { + presences = [[OFMutableDictionary alloc] init]; + } @catch (id e) { + [self release]; + @throw e; + } + + return self; +} + +- (void)dealloc +{ + [presences release]; + + [super dealloc]; +} + - (XMPPRosterItem*)rosterItem { OF_GETTER(rosterItem, YES); }