From 22f67d6ba36856e3014e0856e93f0c43c3066467 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Wed, 7 Nov 2018 21:19:14 -0800 Subject: [PATCH] avoid overreleasing FlutterView (flutter/engine#6791) --- .../darwin/ios/framework/Source/FlutterPlatformViews.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm index c6db8cae49..73a2779bb6 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm @@ -18,7 +18,7 @@ namespace shell { void FlutterPlatformViewsController::SetFlutterView(UIView* flutter_view) { - flutter_view_.reset(flutter_view); + flutter_view_.reset([flutter_view retain]); } void FlutterPlatformViewsController::OnMethodCall(FlutterMethodCall* call, FlutterResult& result) {