From 75ba5f9a2e10c80e5f0573561d536d6684b3d722 Mon Sep 17 00:00:00 2001 From: Sigurd Meldgaard Date: Fri, 17 Nov 2017 13:49:57 +0100 Subject: [PATCH] Avoid double retain of Texture on ios. (flutter/engine#4354) The "raw" pointer is already managed by ARC. --- .../shell/platform/darwin/ios/ios_external_texture_gl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/ios_external_texture_gl.h b/engine/src/flutter/shell/platform/darwin/ios/ios_external_texture_gl.h index c26eb8c29c..a658fdf316 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/ios_external_texture_gl.h +++ b/engine/src/flutter/shell/platform/darwin/ios/ios_external_texture_gl.h @@ -7,7 +7,6 @@ #include "flutter/flow/texture.h" #include "flutter/fml/platform/darwin/cf_utils.h" -#include "flutter/fml/platform/darwin/scoped_nsobject.h" #include "flutter/shell/platform/darwin/ios/framework/Headers/FlutterTexture.h" namespace shell { @@ -27,7 +26,7 @@ class IOSExternalTextureGL : public flow::Texture { virtual void OnGrContextDestroyed() override; private: - fml::scoped_nsobject> external_texture_; + NSObject* external_texture_; fml::CFRef cache_ref_; fml::CFRef texture_ref_; FXL_DISALLOW_COPY_AND_ASSIGN(IOSExternalTextureGL);