From 7d729f66b4be5c931eae86bff17e45e4df11cdcc Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 24 Aug 2016 13:45:26 -0700 Subject: [PATCH] Fix leak of PlatformViewAndroid when FlutterView is destroyed (#2969) --- sky/shell/platform/android/platform_view_android.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sky/shell/platform/android/platform_view_android.cc b/sky/shell/platform/android/platform_view_android.cc index 484bcefdc..aab566e03 100644 --- a/sky/shell/platform/android/platform_view_android.cc +++ b/sky/shell/platform/android/platform_view_android.cc @@ -378,7 +378,7 @@ PlatformViewAndroid::PlatformViewAndroid() PlatformViewAndroid::~PlatformViewAndroid() = default; void PlatformViewAndroid::Detach(JNIEnv* env, jobject obj) { - // Note: |this| has been destroyed at this point. + delete this; } void PlatformViewAndroid::SurfaceCreated(JNIEnv* env, -- GitLab