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:
@@ -22,7 +22,7 @@ class AndroidContext {
|
||||
public:
|
||||
explicit AndroidContext(AndroidRenderingAPI rendering_api);
|
||||
|
||||
~AndroidContext();
|
||||
virtual ~AndroidContext();
|
||||
|
||||
AndroidRenderingAPI RenderingApi() const;
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user