palette deallocation fixes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@13050 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-03-08 15:26:10 +00:00
parent dc24d79035
commit 4752727ade
4 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2002-03-08 Richard Frith-Macdonald <rfm@gnu.org>
* IBInspector.m: Don't release window on dealloc ... assume it
* releases itsself when closed.
* IBPalette.m: ditto
2002-03-06 Richard Frith-Macdonald <rfm@gnu.org>
* IBInspector.m: Release all ivars on dealloc.

6
Gorm.h
View file

@ -337,7 +337,8 @@ extern NSString *IBClassNameChangedNotification;
with: (NSView*)aView;
/**
* Releases all the instance variables and removes self as an observer
* Releases all the instance variables apart from the window (which is
* presumed to release itsself when closed) and removes self as an observer
* of notifications before destroying self.
*/
- (void) dealloc;
@ -386,7 +387,8 @@ extern NSString *IBClassNameChangedNotification;
}
/**
* Releases all the instance variables and removes self as an observer
* Releases all the instance variables (apart from the window, which is
* presumed to release itself when closed) and removes self as an observer
* of notifications before destroying self.
*/
- (void) dealloc;

View file

@ -38,7 +38,6 @@ NSString *IBSelectionChangedNotification
RELEASE(object);
RELEASE(okButton);
RELEASE(revertButton);
RELEASE(window);
[super dealloc];
}

View file

@ -82,7 +82,6 @@ static NSMapTable *viewToType = 0;
{
[[NSNotificationCenter defaultCenter] removeObserver: self];
RELEASE(icon);
RELEASE(window);
[super dealloc];
}