diff --git a/engine/src/flutter/shell/platform/android/context/android_context.h b/engine/src/flutter/shell/platform/android/context/android_context.h index e9bdc06b17..77586e0fbb 100644 --- a/engine/src/flutter/shell/platform/android/context/android_context.h +++ b/engine/src/flutter/shell/platform/android/context/android_context.h @@ -22,7 +22,7 @@ class AndroidContext { public: explicit AndroidContext(AndroidRenderingAPI rendering_api); - ~AndroidContext(); + virtual ~AndroidContext(); AndroidRenderingAPI RenderingApi() const; diff --git a/engine/src/flutter/shell/platform/android/platform_view_android.h b/engine/src/flutter/shell/platform/android/platform_view_android.h index a808257ae7..3b424f2920 100644 --- a/engine/src/flutter/shell/platform/android/platform_view_android.h +++ b/engine/src/flutter/shell/platform/android/platform_view_android.h @@ -35,7 +35,6 @@ class AndroidSurfaceFactoryImpl : public AndroidSurfaceFactory { private: const AndroidContext& android_context_; std::shared_ptr jni_facade_; - std::weak_ptr external_view_embedder_; }; class PlatformViewAndroid final : public PlatformView {