|
|
|
@ -218,10 +218,12 @@ static inline void initAutorelease(void)
|
|
|
|
useARCAutoreleasePool = YES;
|
|
|
|
useARCAutoreleasePool = YES;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
useARCAutoreleasePool = (0 != class_getInstanceMethod(AutoreleasePool,
|
|
|
|
|
|
|
|
SELECTOR(_ARCCompatibleAutoreleasePool)));
|
|
|
|
|
|
|
|
if (!useARCAutoreleasePool)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[AutoreleasePool class];
|
|
|
|
[AutoreleasePool class];
|
|
|
|
useARCAutoreleasePool = class_respondsToSelector(AutoreleasePool,
|
|
|
|
|
|
|
|
SELECTOR(_ARCCompatibleAutoreleasePool));
|
|
|
|
|
|
|
|
NewAutoreleasePool = class_getMethodImplementation(object_getClass(AutoreleasePool),
|
|
|
|
NewAutoreleasePool = class_getMethodImplementation(object_getClass(AutoreleasePool),
|
|
|
|
SELECTOR(new));
|
|
|
|
SELECTOR(new));
|
|
|
|
DeleteAutoreleasePool = class_getMethodImplementation(AutoreleasePool,
|
|
|
|
DeleteAutoreleasePool = class_getMethodImplementation(AutoreleasePool,
|
|
|
|
@ -231,6 +233,7 @@ static inline void initAutorelease(void)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static inline id autorelease(id obj)
|
|
|
|
static inline id autorelease(id obj)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|