FBRetainCycleDetector
FBRetainCycleDetector copied to clipboard
_FBNSCFTimerInfoStruct will crash, can't support block of timer
if (context.info && context.retain) { xxxx }
should modify to
if (context.info && context.retain) { const char *type = object_getClassName((__bridge id)context.info); if (strcmp(type, "__NSMallocBlock__") || strcmp(type, "__NSGlobalBlock__") || strcmp(type, "__NSStackBlock__")) { CFRunLoopTimerCallBack *callBack = (CFRunLoopTimerCallBack *)(context.info); } else { xxxx } }