Fixed problem where AndroidShellHolder was trashing the ThreadHost in its deconstructor (flutter/engine#24644)

This commit is contained in:
gaaclarke
2021-02-26 08:55:06 -08:00
committed by GitHub
parent 797900e886
commit 1601ba9329
3 changed files with 1 additions and 11 deletions

View File

@@ -35,12 +35,4 @@ ThreadHost::ThreadHost(std::string name_prefix_arg, uint64_t mask)
ThreadHost::~ThreadHost() = default;
void ThreadHost::Reset() {
platform_thread.reset();
ui_thread.reset();
raster_thread.reset();
io_thread.reset();
profiler_thread.reset();
}
} // namespace flutter

View File

@@ -38,8 +38,6 @@ struct ThreadHost {
ThreadHost(std::string name_prefix, uint64_t type_mask);
~ThreadHost();
void Reset();
};
} // namespace flutter

View File

@@ -170,7 +170,7 @@ AndroidShellHolder::AndroidShellHolder(
AndroidShellHolder::~AndroidShellHolder() {
shell_.reset();
thread_host_->Reset();
thread_host_.reset();
}
bool AndroidShellHolder::IsValid() const {