Fix destruction of the child object list in the iOS accessibility bridge (flutter/engine#7108)
Fixes https://github.com/flutter/flutter/issues/22206
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user