feat:fix params dealloced before invoke
This commit is contained in:
parent
e63574ccca
commit
7218ec3d1b
@ -73,11 +73,15 @@ - (id)findClass:(Class)clz target:(id)target context:(DoricContext *)context met
|
||||
dispatch_block_t block = ^() {
|
||||
__strong __typeof__(_self) self = _self;
|
||||
@try {
|
||||
NSMutableArray *tempArray = [NSMutableArray new];
|
||||
for (NSUInteger idx = 2; idx < methodSignature.numberOfArguments; idx++) {
|
||||
if (idx - 2 > [array count]) {
|
||||
break;
|
||||
}
|
||||
id args = [self createParamWithMethodName:array[idx - 2] context:context callbackId:callbackId argument:argument];
|
||||
if (args) {
|
||||
[tempArray addObject:args];
|
||||
}
|
||||
[invocation setArgument:&args atIndex:idx];
|
||||
}
|
||||
[invocation invoke];
|
||||
|
Reference in New Issue
Block a user