Skip to content

Commit

Permalink
Add missing mutex lock in ScreenManager::RecreateAllViews
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Sep 10, 2023
1 parent c343c19 commit 5547fe2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Common/UI/Screen.cpp
Expand Up @@ -296,6 +296,7 @@ void ScreenManager::pop() {
}

void ScreenManager::RecreateAllViews() {
std::lock_guard<std::recursive_mutex> guard(inputLock_);
for (auto it = stack_.begin(); it != stack_.end(); ++it) {
it->screen->RecreateViews();
}
Expand Down

0 comments on commit 5547fe2

Please sign in to comment.