[iOS] Fixes context memory leaks when using Metal (flutter/engine#25389)
This commit is contained in:
@@ -14,7 +14,7 @@ namespace flutter {
|
||||
|
||||
IOSContextMetal::IOSContextMetal() {
|
||||
darwin_context_metal_ = fml::scoped_nsobject<FlutterDarwinContextMetal>{
|
||||
[[[FlutterDarwinContextMetal alloc] initWithDefaultMTLDevice] retain]};
|
||||
[[FlutterDarwinContextMetal alloc] initWithDefaultMTLDevice]};
|
||||
|
||||
if (!darwin_context_metal_) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user