未验证 提交 42c62a94 编写于 作者: J Jason Simmons 提交者: GitHub

Fix destruction of the child object list in the iOS accessibility bridge (#7108)

Fixes https://github.com/flutter/flutter/issues/22206
上级 8190e939
......@@ -110,7 +110,7 @@ blink::SemanticsAction GetSemanticsActionForScrollDirection(
if (self) {
_bridge = bridge;
_uid = uid;
self.children = [[[NSMutableArray alloc] init] autorelease];
_children = [[NSMutableArray alloc] init];
}
return self;
......@@ -121,7 +121,7 @@ blink::SemanticsAction GetSemanticsActionForScrollDirection(
child.parent = nil;
}
[_children removeAllObjects];
[_children dealloc];
[_children release];
_parent = nil;
[_container release];
_container = nil;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册