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:
Nicola Pero 2001-10-18 15:28:05 +00:00
parent 6864a9769f
commit 967a2f2177

View file

@ -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);