mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 06:28:54 +00:00
Fixed bug in deallocation process where we were not removign us from
observing the document view notificatiosn git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11203 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6864a9769f
commit
967a2f2177
1 changed files with 7 additions and 1 deletions
|
@ -91,7 +91,13 @@ static inline NSRect integralRect (NSRect rect, NSView *view)
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(_documentView);
|
||||
if (_documentView != nil)
|
||||
{
|
||||
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
|
||||
|
||||
[nc removeObserver: self name: nil object: _documentView];
|
||||
RELEASE(_documentView);
|
||||
}
|
||||
RELEASE(_cursor);
|
||||
RELEASE(_backgroundColor);
|
||||
|
||||
|
|
Loading…
Reference in a new issue