Fix rare segfault when destroying workspace

pull/2280/head
zjeffer 2023-07-04 19:40:43 +02:00
parent 5f29e5a5e8
commit d3be9a7363
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ void Workspaces::remove_workspace(int id) {
[&](std::unique_ptr<Workspace> &x) { return x->id() == id; });
if (workspace == workspaces_.end()) {
spdlog::warn("Can't find workspace with id {}", workspace->get()->id());
spdlog::warn("Can't find workspace with id {}", id);
return;
}