Fix initialization of XMPPContact
This commit is contained in:
parent
5554e3a51f
commit
96b72e570e
1 changed files with 21 additions and 0 deletions
|
@ -25,6 +25,27 @@
|
||||||
#import "XMPPConnection.h"
|
#import "XMPPConnection.h"
|
||||||
|
|
||||||
@implementation XMPPContact
|
@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
|
- (XMPPRosterItem*)rosterItem
|
||||||
{
|
{
|
||||||
OF_GETTER(rosterItem, YES);
|
OF_GETTER(rosterItem, YES);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue