提交 45fe095d 编写于 作者: W Wu Zhong 提交者: Chris Bracken

Fixes FlutterCallbackInfomation leaks (#15089)

See: flutter/flutter#46750
上级 e9be3974
......@@ -16,7 +16,7 @@
if (info == nullptr) {
return nil;
}
FlutterCallbackInformation* new_info = [[FlutterCallbackInformation alloc] init];
FlutterCallbackInformation* new_info = [[[FlutterCallbackInformation alloc] init] autorelease];
new_info.callbackName = [NSString stringWithUTF8String:info->name.c_str()];
new_info.callbackClassName = [NSString stringWithUTF8String:info->class_name.c_str()];
new_info.callbackLibraryPath = [NSString stringWithUTF8String:info->library_path.c_str()];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册