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:
Jason Simmons
2018-12-17 16:05:23 -08:00
committed by GitHub
parent 5463140ef4
commit 1449f3af36

View File

@@ -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;