fix Memory leak when using PlatformView [IOS] #24714 (#7919)

This commit is contained in:
ashawn 2019-02-23 01:00:15 +08:00 committed by Amir Hardon
parent 2d33e775f6
commit 93f339fb67

View File

@ -62,6 +62,7 @@ IOSGLRenderTarget::IOSGLRenderTarget(fml::scoped_nsobject<CAEAGLLayer> layer,
}
IOSGLRenderTarget::~IOSGLRenderTarget() {
[EAGLContext setCurrentContext:context_];
FML_DCHECK(glGetError() == GL_NO_ERROR);
// Deletes on GL_NONEs are ignored