mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
cc7cb05157
commit
65b8d0067c
12 changed files with 72 additions and 57 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue