mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
4b1b047b85
commit
bad4f54d67
14 changed files with 302 additions and 255 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue