mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
5000edae5b
commit
002f6635b4
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue