Use NSZone functions for memory allocation

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7780 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2000-10-10 19:47:54 +00:00
parent 72e4399351
commit 6c0137925a
3 changed files with 5 additions and 4 deletions

View file

@ -88,7 +88,8 @@ GSNumberInfoFromObject(NSNumber *o)
break;
}
}
info = (GSNumberInfo*)objc_malloc(sizeof(GSNumberInfo));
info = (GSNumberInfo*)NSZoneMalloc(NSDefaultMallocZone(),
(sizeof(GSNumberInfo)));
info->typeLevel = order;
info->getValue = (void (*)(NSNumber*, SEL, void*))