mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
GC improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27848 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d2fa82f877
commit
43a0af2382
7 changed files with 54 additions and 7 deletions
|
@ -515,7 +515,11 @@ failure:
|
|||
|
||||
if (bufferSize > 0)
|
||||
{
|
||||
#if GS_WITH_GC
|
||||
ptr = NSAllocateCollectable(bufferSize, 0);
|
||||
#else
|
||||
ptr = NSZoneMalloc(NSDefaultMallocZone(), bufferSize);
|
||||
#endif
|
||||
if (ptr == 0)
|
||||
{
|
||||
DESTROY(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue