mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-04 15:00:41 +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
c6e931213a
commit
d80d068759
1 changed files with 7 additions and 1 deletions
|
@ -91,7 +91,13 @@ static inline NSRect integralRect (NSRect rect, NSView *view)
|
||||||
|
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
|
if (_documentView != nil)
|
||||||
|
{
|
||||||
|
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
|
||||||
|
|
||||||
|
[nc removeObserver: self name: nil object: _documentView];
|
||||||
RELEASE(_documentView);
|
RELEASE(_documentView);
|
||||||
|
}
|
||||||
RELEASE(_cursor);
|
RELEASE(_cursor);
|
||||||
RELEASE(_backgroundColor);
|
RELEASE(_backgroundColor);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue