From c74c0bfb09763eec760faee7349be348a2491bbc Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 4 May 2016 14:35:35 -0700 Subject: [PATCH] Explicitly close Mojo proxies during destruction of a FlutterView (#2646) Partial fix for https://github.com/flutter/flutter/issues/2950 --- sky/shell/platform/android/io/flutter/view/FlutterView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sky/shell/platform/android/io/flutter/view/FlutterView.java b/sky/shell/platform/android/io/flutter/view/FlutterView.java index 75a4ec0d419..05ee7c67308 100644 --- a/sky/shell/platform/android/io/flutter/view/FlutterView.java +++ b/sky/shell/platform/android/io/flutter/view/FlutterView.java @@ -206,6 +206,10 @@ public class FlutterView extends SurfaceView getHolder().removeCallback(mSurfaceCallback); nativeDetach(mNativePlatformView); mNativePlatformView = 0; + + mSkyEngine.close(); + mDartServiceProvider.close(); + mFlutterAppMessages.close(); } @Override