mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(NSAllocateObject): Use zone argument.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@158 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
aef82b1c3d
commit
dd5574d9e2
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ NSObject *NSAllocateObject(Class aClass, unsigned extraBytes, NSZone *zone)
|
|||
id new = nil;
|
||||
int size = aClass->instance_size + extraBytes;
|
||||
if (CLS_ISCLASS(aClass))
|
||||
new = NSZoneMalloc (size);
|
||||
new = NSZoneMalloc (zone, size);
|
||||
if (new != nil)
|
||||
{
|
||||
memset (new, 0, size);
|
||||
|
|
Loading…
Reference in a new issue