Remove the roster delegate if it gets deallocated.

Maybe it's not a good idea altogether to add/remove the roster
automatically?
This commit is contained in:
Jonathan Schleifer 2012-01-30 14:35:50 +01:00
parent c75c7f1f91
commit cb43292ca0
2 changed files with 2 additions and 2 deletions

View file

@ -56,12 +56,12 @@
- (void)dealloc
{
[connection removeDelegate: self];
[rosterItems release];
[super dealloc];
}
- (OFDictionary*)rosterItems
{
return [[rosterItems copy] autorelease];

View file

@ -39,7 +39,7 @@
<OFApplicationDelegate, XMPPConnectionDelegate, XMPPRosterDelegate>
#endif
{
XMPPConnection * conn;
XMPPConnection *conn;
XMPPRoster *roster;
}
@end