Skip to content

Commit

Permalink
Add missing MouseCursorPlugin destroy call (flutter#19968)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons committed Jul 30, 2020
1 parent f288fe5 commit 8464208
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -936,6 +936,10 @@ public void detachFromFlutterEngine() {
textInputPlugin.getInputMethodManager().restartInput(this);
textInputPlugin.destroy();

if (mouseCursorPlugin != null) {
mouseCursorPlugin.destroy();
}

// Instruct our FlutterRenderer that we are no longer interested in being its RenderSurface.
FlutterRenderer flutterRenderer = flutterEngine.getRenderer();
isFlutterUiDisplayed = false;
Expand Down

0 comments on commit 8464208

Please sign in to comment.