Small GC fixups. Make sure that we're actually using GC-tracked memory when we think that we are.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33416 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2011-06-29 15:41:14 +00:00
parent 5000edae5b
commit 002f6635b4
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@
static NSDictionary *blank;
static NSLock *attrLock = nil;
static GSIMapTable_t attrMap;
static __strong GSIMapTable_t attrMap;
static SEL lockSel;
static SEL unlockSel;
static IMP lockImp;

View file

@ -506,7 +506,7 @@
rowBytes = ceil((float)width * _bitsPerPixel / 8);
_bytesPerRow = rowBytes;
_imagePlanes = NSZoneMalloc([self zone], sizeof(unsigned char*) * MAX_PLANES);
_imagePlanes = NSAllocateCollectable(sizeof(unsigned char*) * MAX_PLANES, 0);
if (planes)
{
unsigned int i;