-(void)walkDOM:(SEL)visitor node:(QuadNode*)node {
[self performSelector:visitor withObject:node]; /* ------>100% leaks shown here */
NSArray* children = node.children;
if (children) {
for (QuadNode* child in children) {
[self walkDOM:visitor node:child];
}
}
}
我不知道上面有什么问题它崩溃了。任何帮助建议!!!!!
修改
-(void)registerFramesetterVisitor:(TDOMNode*)node {
[strMaker reset];
[node registerFramesetter:self];
}
答案 0 :(得分:1)
这只是编译器警告的问题,您可以使用以下方法来禁止它们:
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[self performSelector:visitor withObject:node];
#pragma clang diagnostic pop