From 3dc853c388c104db9659a7f1ec4802a5e520302b Mon Sep 17 00:00:00 2001 From: Wu Zhong Date: Thu, 8 Apr 2021 07:16:11 +0800 Subject: [PATCH] [iOS] Fixes context memory leaks when using Metal (flutter/engine#25389) --- .../src/flutter/shell/platform/darwin/ios/ios_context_metal.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/ios_context_metal.mm b/engine/src/flutter/shell/platform/darwin/ios/ios_context_metal.mm index 1c9a1a1f09..d0205774cb 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/ios_context_metal.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/ios_context_metal.mm @@ -14,7 +14,7 @@ namespace flutter { IOSContextMetal::IOSContextMetal() { darwin_context_metal_ = fml::scoped_nsobject{ - [[[FlutterDarwinContextMetal alloc] initWithDefaultMTLDevice] retain]}; + [[FlutterDarwinContextMetal alloc] initWithDefaultMTLDevice]}; if (!darwin_context_metal_) { return;