Fix initialization of XMPPContact

This commit is contained in:
Florian Zeitz 2013-02-02 22:59:24 +01:00
parent 5554e3a51f
commit 96b72e570e

View file

@ -25,6 +25,27 @@
#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);