[iOS] Add autorelease for window scene geometry preferences object (flutter/engine#36958)
This commit is contained in:
@@ -1549,8 +1549,8 @@ static flutter::PointerData::DeviceKind DeviceKindFromTouchType(UITouch* touch)
|
||||
if (!(_orientationPreferences & currentInterfaceOrientation)) {
|
||||
[self setNeedsUpdateOfSupportedInterfaceOrientations];
|
||||
UIWindowSceneGeometryPreferencesIOS* preference =
|
||||
[[UIWindowSceneGeometryPreferencesIOS alloc]
|
||||
initWithInterfaceOrientations:_orientationPreferences];
|
||||
[[[UIWindowSceneGeometryPreferencesIOS alloc]
|
||||
initWithInterfaceOrientations:_orientationPreferences] autorelease];
|
||||
[windowScene
|
||||
requestGeometryUpdateWithPreferences:preference
|
||||
errorHandler:^(NSError* error) {
|
||||
|
||||
Reference in New Issue
Block a user