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 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:
parent
a9d48edd44
commit
6864a9769f
1 changed files with 9 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue