Fixed bug in deallocation process where we were not removing us from

observing the text view's notifications


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11202 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-10-18 15:26:59 +00:00
parent a9d48edd44
commit 6864a9769f

View file

@ -99,7 +99,15 @@
- (void) dealloc
{
RELEASE (_textView);
if (_textView != nil)
{
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
[nc removeObserver: self
name: NSViewFrameDidChangeNotification
object: _textView];
RELEASE (_textView);
}
[super dealloc];
}