Skip to content

Commit

Permalink
Fixes FlutterCallbackInfomation leaks (flutter#15089)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwuzw authored and NoamDev committed Feb 27, 2020
1 parent f173f3c commit b610694
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ + (FlutterCallbackInformation*)lookupCallbackInformation:(int64_t)handle {
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()];
Expand Down

0 comments on commit b610694

Please sign in to comment.