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:
Richard Frith-MacDonald 2009-02-11 17:33:31 +00:00
parent d2fa82f877
commit 43a0af2382
7 changed files with 54 additions and 7 deletions

View file

@ -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);