fix: double free / uncatched errors

This commit is contained in:
Alex
2026-02-04 09:47:00 +01:00
parent 47fb21a2c1
commit 39e59e557f
2 changed files with 12 additions and 4 deletions

View File

@@ -939,7 +939,7 @@ void Workspaces::sortWorkspaces() {
case SortMethod::NUMBER:
try {
return std::stoi(a->name()) < std::stoi(b->name());
} catch (const std::invalid_argument&) {
} catch (const std::exception& e) {
// Handle the exception if necessary.
break;
}