mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
3c735f0c53
commit
cf724b05d1
1 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue