Release data objects reasonably.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4272 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-05-19 20:18:51 +00:00
parent 6e30557a2f
commit f2d8bc8b52

View file

@ -381,12 +381,13 @@ bench_data()
START_TIMER;
for (i = 0; i < MAX_COUNT/10; i++)
{
d = [dataClass dataWithContentsOfFile:@"benchmark.m"];
d = [[dataClass alloc] initWithContentsOfFile:@"benchmark.m"];
[d length];
o = [d copy];
[o release];
o = [d mutableCopy];
[o release];
[d release];
}
END_TIMER;
PRINT_TIMER("NSData (various) ");