Make the AndroidContext superclass destructor virtual (flutter/engine#22555)

Also remove an obsolete external_view_embedder reference from
AndroidSurfaceFactoryImpl.

Fixes https://github.com/flutter/flutter/issues/70621
This commit is contained in:
Jason Simmons
2020-11-16 15:46:52 -08:00
committed by GitHub
parent 51cdc317d2
commit 9af515627c
2 changed files with 1 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ class AndroidContext {
public:
explicit AndroidContext(AndroidRenderingAPI rendering_api);
~AndroidContext();
virtual ~AndroidContext();
AndroidRenderingAPI RenderingApi() const;

View File

@@ -35,7 +35,6 @@ class AndroidSurfaceFactoryImpl : public AndroidSurfaceFactory {
private:
const AndroidContext& android_context_;
std::shared_ptr<PlatformViewAndroidJNI> jni_facade_;
std::weak_ptr<AndroidExternalViewEmbedder> external_view_embedder_;
};
class PlatformViewAndroid final : public PlatformView {