Skip to content

Commit

Permalink
Fix use-after-move while stashing the active applications in the runn…
Browse files Browse the repository at this point in the history
…er. (flutter#5245)
  • Loading branch information
chinmaygarde authored May 12, 2018
1 parent 613abf2 commit 620d2fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions content_handler/application_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ void ApplicationRunner::StartApplication(
std::move(controller) // controller request
);

active_applications_[thread_application_pair.second.get()] =
std::move(thread_application_pair);
auto key = thread_application_pair.second.get();

active_applications_[key] = std::move(thread_application_pair);
}

void ApplicationRunner::OnApplicationTerminate(const Application* application) {
Expand Down

0 comments on commit 620d2fd

Please sign in to comment.