mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix memory leak of FlutterCustomAccessibilityAction (flutter/engine#17954)
This commit is contained in:
parent
f1e911f717
commit
7dec4ba0a8
@ -76,9 +76,9 @@ void AccessibilityBridge::UpdateSemantics(flutter::SemanticsNodeUpdates nodes,
|
||||
NSString* label = @(action.label.data());
|
||||
SEL selector = @selector(onCustomAccessibilityAction:);
|
||||
FlutterCustomAccessibilityAction* customAction =
|
||||
[[FlutterCustomAccessibilityAction alloc] initWithName:label
|
||||
target:object
|
||||
selector:selector];
|
||||
[[[FlutterCustomAccessibilityAction alloc] initWithName:label
|
||||
target:object
|
||||
selector:selector] autorelease];
|
||||
customAction.uid = action_id;
|
||||
[accessibilityCustomActions addObject:customAction];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user