From 1449f3af3661b9960bde7a4675befd7ccbffcbef Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Mon, 17 Dec 2018 16:05:23 -0800 Subject: [PATCH] Fix destruction of the child object list in the iOS accessibility bridge (flutter/engine#7108) Fixes https://github.com/flutter/flutter/issues/22206 --- .../darwin/ios/framework/Source/accessibility_bridge.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/accessibility_bridge.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/accessibility_bridge.mm index d744e5fc06..0f7b11d07c 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/accessibility_bridge.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/accessibility_bridge.mm @@ -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;