From 79904c9ae10d66fd87cb9e755bd9b82d1eda2cbc Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Thu, 11 Oct 2001 10:15:52 +0000 Subject: [PATCH] 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 --- Source/NSMatrix.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/NSMatrix.m b/Source/NSMatrix.m index a85b55e83..ff6518cec 100644 --- a/Source/NSMatrix.m +++ b/Source/NSMatrix.m @@ -1547,7 +1547,7 @@ static SEL getSel; { if ([_selectedCell isEntryAcceptable: [aTextObject text]] == NO) { - [self sendAction: _errorAction to: [self target]]; + [self sendAction: _errorAction to: _target]; return NO; } @@ -2601,7 +2601,7 @@ static SEL getSel; - (void) setTarget: anObject { - ASSIGN(_target, anObject); + _target = anObject; } - (id) target