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:
parent
c75c7f1f91
commit
cb43292ca0
2 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue