mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix memory leak in FlutterSwitchSemanticsObject (flutter/engine#28065)
This commit is contained in:
parent
341a0f2f24
commit
bfce29ca8e
@ -100,7 +100,7 @@ CGRect ConvertRectToGlobal(SemanticsObject* reference, CGRect local_rect) {
|
||||
uid:(int32_t)uid {
|
||||
self = [super initWithBridge:bridge uid:uid];
|
||||
if (self) {
|
||||
_nativeSwitch = [[[UISwitch alloc] init] retain];
|
||||
_nativeSwitch = [[UISwitch alloc] init];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user