Make -drain and -release in NSAutoreleasePool do the same thing (rather than one calling the other) in non-GC mode.

Replace all -release messages sent to autorelease pools with -drain.  In non-GC mode, these are equivalent.  In GC mode, these trigger a collection.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33143 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
theraven 2011-05-27 11:48:44 +00:00
parent 3dd46a1d8c
commit e50e12129e
28 changed files with 61 additions and 59 deletions

View file

@ -1038,7 +1038,7 @@ static NSMapTable *absolutes = 0;
[md makeImmutableCopyOnFail: NO];
abbreviationDictionary = md;
}
[pool release];
[pool drain];
}
if (zone_mutex != nil)
{
@ -1184,7 +1184,7 @@ static NSMapTable *absolutes = 0;
[md makeImmutableCopyOnFail: NO];
abbreviationMap = RETAIN(md);
[pool release];
[pool drain];
}
if (zone_mutex != nil)
{
@ -1840,7 +1840,7 @@ localZoneString, [zone name], sign, s/3600, (s/60)%60);
}
}
regionsArray = [[NSArray alloc] initWithObjects: temp_array count: 24];
[pool release];
[pool drain];
}
if (zone_mutex != nil)
{