diff --git a/shell/platform/android/android_external_texture_gl.cc b/shell/platform/android/android_external_texture_gl.cc index ae5101012f78bd9f235b5dfc682a34d7ea1ee54b..ac4f73eca7cc946a717bbcf570779d7a68fcb527 100644 --- a/shell/platform/android/android_external_texture_gl.cc +++ b/shell/platform/android/android_external_texture_gl.cc @@ -82,6 +82,7 @@ void AndroidExternalTextureGL::UpdateTransform() { void AndroidExternalTextureGL::OnGrContextDestroyed() { if (state_ == AttachmentState::attached) { Detach(); + glDeleteTextures(1, &texture_name_); } state_ = AttachmentState::detached; }