提交 25cb75d0 编写于 作者: X xiaohaichun

fix bug

上级 e41756b1
......@@ -24,7 +24,7 @@ public class ResultHolder: NSObject {
capacity = inCapacity
}
public func releasePointer() {
@objc public func releasePointer() {
result?.deinitialize(count: capacity)
result?.deallocate()
}
......
......@@ -49,6 +49,7 @@
[resultArray addObject:[NSNumber numberWithFloat:result.result[i]]];
}
completion(success, resultArray);
[result releasePointer];
}];
// [runner predictWithTexture:texture completion:completion];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册