More GC tidyups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4953 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-09-28 11:10:34 +00:00
parent cc7cb05157
commit 65b8d0067c
12 changed files with 72 additions and 57 deletions

View file

@ -430,7 +430,7 @@ deserializeFromInfo(_NSDeserializerInfo* info)
case ST_CSTRING:
{
NSGCString *s;
char *b = objc_malloc(size);
char *b = NSZoneMalloc(NSDefaultMallocZone(), size);
(*info->debImp)(info->data, debSel, b, size, info->cursor);
s = (NSGCString*)NSAllocateObject(CSCls, 0, NSDefaultMallocZone());
@ -468,7 +468,7 @@ deserializeFromInfo(_NSDeserializerInfo* info)
case ST_STRING:
{
NSGString *s;
unichar *b = objc_malloc(size*2);
unichar *b = NSZoneMalloc(NSDefaultMallocZone(), size*2);
(*info->debImp)(info->data, debSel, b, size*2, info->cursor);
s = (NSGString*)NSAllocateObject(USCls, 0, NSDefaultMallocZone());
@ -603,7 +603,7 @@ deserializeFromInfo(_NSDeserializerInfo* info)
case ST_DATA:
{
NSData *d;
void *b = objc_malloc(size);
void *b = NSZoneMalloc(NSDefaultMallocZone(), size);
(*info->debImp)(info->data, debSel, b, size, info->cursor);
d = (NSData*)NSAllocateObject(DCls, 0, NSDefaultMallocZone());