Optimisation, bug fixes and tidying up.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4107 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-04-21 20:16:25 +00:00
parent 4b1b047b85
commit bad4f54d67
14 changed files with 302 additions and 255 deletions

View file

@ -113,7 +113,7 @@ static unsigned local_object_counter = 0;
counter = (GSLocalCounter*)NSAllocateObject(self, 0, NSDefaultMallocZone());
counter->ref = 1;
counter->object = [obj retain];
counter->object = RETAIN(obj);
counter->target = ++local_object_counter;
return counter;
}
@ -149,7 +149,7 @@ static unsigned local_object_counter = 0;
{
CachedLocalObject *item = [[self alloc] init];
item->obj = [o retain];
item->obj = RETAIN(o);
item->time = t;
return [item autorelease];
}
@ -485,7 +485,8 @@ static int messages_received_count;
unsigned i;
[proxiesHashGate lock];
targets = [NSAllMapTableValues(local_targets) retain];
targets = NSAllMapTableValues(local_targets);
RETAIN(targets);
for (i = 0; i < [targets count]; i++)
{
id t = [[targets objectAtIndex:i] localForProxy];