mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
72e4399351
commit
6c0137925a
3 changed files with 5 additions and 4 deletions
|
@ -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*))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue