mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:50:39 +00:00
Remove the delegate from the notification center in -dealloc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14531 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
33da6f7f1c
commit
3c735f0c53
4 changed files with 25 additions and 0 deletions
|
@ -2868,6 +2868,11 @@ _isCellEditable (id delegate, NSArray *tableColumns,
|
|||
{
|
||||
NSZoneFree (NSDefaultMallocZone (), _columnOrigins);
|
||||
}
|
||||
if (_delegate != nil)
|
||||
{
|
||||
[nc removeObserver: _delegate name: nil object: self];
|
||||
_delegate = nil;
|
||||
}
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue