mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 07:01:22 +00:00
Fixed memory leak of target object; tiny useless optm in method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11124 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
734669301f
commit
79904c9ae1
1 changed files with 2 additions and 2 deletions
|
@ -1547,7 +1547,7 @@ static SEL getSel;
|
||||||
{
|
{
|
||||||
if ([_selectedCell isEntryAcceptable: [aTextObject text]] == NO)
|
if ([_selectedCell isEntryAcceptable: [aTextObject text]] == NO)
|
||||||
{
|
{
|
||||||
[self sendAction: _errorAction to: [self target]];
|
[self sendAction: _errorAction to: _target];
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2601,7 +2601,7 @@ static SEL getSel;
|
||||||
|
|
||||||
- (void) setTarget: anObject
|
- (void) setTarget: anObject
|
||||||
{
|
{
|
||||||
ASSIGN(_target, anObject);
|
_target = anObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) target
|
- (id) target
|
||||||
|
|
Loading…
Reference in a new issue