Fix unneeded retain.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4274 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-05-20 09:29:02 +00:00
parent 5063e7bbfc
commit 996986cf1a
2 changed files with 3 additions and 3 deletions

View file

@ -1,10 +1,11 @@
Thu May 20 10:40:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
Thu May 20 10:50:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/GSeq.h: Add support for comparison and search.
* Source/NSString.m: Use comparison and search functions from GSeq.h
* Source/NSGString.m: Use comparison and search functions from GSeq.h
* Source/NSGCString.m: Use comparison and search functions from GSeq.h
* Source/Makefile.postamble: Make all string files depend on GSeq.h
* Source/NSRunLoop.m: Don't retain receiver of runloop watcher.
Wed May 19 21:25:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -105,7 +105,6 @@ static SEL eventSel = @selector(receivedEvent:type:extra:forMode:);
- (void) dealloc
{
RELEASE(_date);
RELEASE(receiver);
[super dealloc];
}
@ -124,7 +123,7 @@ static SEL eventSel = @selector(receivedEvent:type:extra:forMode:);
[NSException raise: NSInvalidArgumentException
format: @"NSRunLoop - unknown event type"];
}
receiver = RETAIN(anObj);
receiver = anObj;
if ([receiver respondsToSelector: eventSel] == YES)
handleEvent = [receiver methodForSelector: eventSel];
else