Added -dealloc

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14532 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-09-24 01:33:36 +00:00
parent 3c735f0c53
commit cf724b05d1

View file

@ -81,6 +81,12 @@ static const int current_version = 1;
return self;
}
- (void) dealloc
{
RELEASE (_item);
[super dealloc];
}
- (void)drawRect: (NSRect)aRect
{
// set the image and draw using the super class...
@ -182,6 +188,21 @@ static const int current_version = 1;
return self;
}
/* FIXME */
- (void) dealloc
{
DESTROY (_identifier);
if (_delegate != nil)
{
[nc removeObserver: _delegate name: nil object: self];
_delegate = nil;
}
[super dealloc];
}
- (void)insertItemWithItemIdentifier: (NSString *)itemIdentifier
atIndex: (int)index
{