mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
Use release instead of free.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@480 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
74a57cb6e5
commit
9bd150f7a2
3 changed files with 9 additions and 9 deletions
|
@ -60,7 +60,7 @@
|
||||||
[array removeObjectAtIndex:j];
|
[array removeObjectAtIndex:j];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
[remotes free];
|
[remotes release];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,7 +20,7 @@ int main()
|
||||||
fmode:"w"];
|
fmode:"w"];
|
||||||
[stream writeFormat:"testing %d %u %f %f 0x%x \"cow\"\n",
|
[stream writeFormat:"testing %d %u %f %f 0x%x \"cow\"\n",
|
||||||
1234, 55, 3.14159, 1.23456789, 0xfeedface];
|
1234, 55, 3.14159, 1.23456789, 0xfeedface];
|
||||||
[stream free];
|
[stream release];
|
||||||
|
|
||||||
stream = [[StdioStream alloc]
|
stream = [[StdioStream alloc]
|
||||||
initWithFilename:"./stdio-stream.txt"
|
initWithFilename:"./stdio-stream.txt"
|
||||||
|
@ -28,7 +28,7 @@ int main()
|
||||||
count = [stream readFormat:"testing %d %u %f %lf 0x%x \"%a[^\"]\"\n",
|
count = [stream readFormat:"testing %d %u %f %lf 0x%x \"%a[^\"]\"\n",
|
||||||
&i, &u, &f, &d, &ux, &cp];
|
&i, &u, &f, &d, &ux, &cp];
|
||||||
uc = (unsigned char) ux;
|
uc = (unsigned char) ux;
|
||||||
[stream free];
|
[stream release];
|
||||||
printf("Read count=%d, int=%d unsigned=%u float=%f double=%f "
|
printf("Read count=%d, int=%d unsigned=%u float=%f double=%f "
|
||||||
"uchar=0x%x char*=%s\n",
|
"uchar=0x%x char*=%s\n",
|
||||||
count, i, u, f, d, (unsigned)uc, cp);
|
count, i, u, f, d, (unsigned)uc, cp);
|
||||||
|
|
|
@ -50,9 +50,9 @@ int main()
|
||||||
[coder encodeObject:ll withName:"Test EltNodeCollector LinkedList"];
|
[coder encodeObject:ll withName:"Test EltNodeCollector LinkedList"];
|
||||||
|
|
||||||
/* Free the objects */
|
/* Free the objects */
|
||||||
[coder free];
|
[coder release];
|
||||||
[set free];
|
[set release];
|
||||||
[ll free];
|
[ll release];
|
||||||
|
|
||||||
/* Read them back in from the file */
|
/* Read them back in from the file */
|
||||||
/* First init the stream and coder */
|
/* First init the stream and coder */
|
||||||
|
@ -78,9 +78,9 @@ int main()
|
||||||
[ll printForDebugger];
|
[ll printForDebugger];
|
||||||
|
|
||||||
/* Free the objects */
|
/* Free the objects */
|
||||||
[coder free];
|
[coder release];
|
||||||
[set free];
|
[set release];
|
||||||
[ll free];
|
[ll release];
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue