Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 67e6bde

Browse files
committed
Ensure the destroy task runs.
1 parent 5ed8eb3 commit 67e6bde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell/common/shell.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,11 +900,11 @@ void Shell::OnPlatformViewDestroyed() {
900900
// https://github.com/flutter/flutter/issues/96679 is fixed.
901901
rasterizer_->TeardownExternalViewEmbedder();
902902

903-
auto ui_task = [engine = engine_->GetWeakPtr()] {
903+
task_runners_.GetUITaskRunner()->PostTask([engine = engine_->GetWeakPtr()]() {
904904
if (engine) {
905905
engine->NotifyDestroyed();
906906
}
907-
};
907+
});
908908
}
909909

910910
// |PlatformView::Delegate|

0 commit comments

Comments
 (0)