提交 c74c0bfb 编写于 作者: J Jason Simmons

Explicitly close Mojo proxies during destruction of a FlutterView (#2646)

Partial fix for https://github.com/flutter/flutter/issues/2950
上级 db5d105e
......@@ -206,6 +206,10 @@ public class FlutterView extends SurfaceView
getHolder().removeCallback(mSurfaceCallback);
nativeDetach(mNativePlatformView);
mNativePlatformView = 0;
mSkyEngine.close();
mDartServiceProvider.close();
mFlutterAppMessages.close();
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册