Fix rare segfault when destroying workspace

This commit is contained in:
zjeffer 2023-07-04 19:40:43 +02:00
parent 5f29e5a5e8
commit d3be9a7363

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;
}