Avoid double retain of Texture on ios. (flutter/engine#4354)

The "raw" pointer is already managed by ARC.
This commit is contained in:
Sigurd Meldgaard
2017-11-17 13:49:57 +01:00
committed by GitHub
parent 6f728c4150
commit 75ba5f9a2e

View File

@@ -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<NSObject<FlutterTexture>> external_texture_;
NSObject<FlutterTexture>* external_texture_;
fml::CFRef<CVOpenGLESTextureCacheRef> cache_ref_;
fml::CFRef<CVOpenGLESTextureRef> texture_ref_;
FXL_DISALLOW_COPY_AND_ASSIGN(IOSExternalTextureGL);