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 - (void)dealloc
{ {
[connection removeDelegate: self];
[rosterItems release]; [rosterItems release];
[super dealloc]; [super dealloc];
} }
- (OFDictionary*)rosterItems - (OFDictionary*)rosterItems
{ {
return [[rosterItems copy] autorelease]; return [[rosterItems copy] autorelease];

View file

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