Merge pull request #1451 from euclio/use-after-free

This commit is contained in:
Alex 2022-03-04 06:10:25 +01:00 committed by GitHub
commit 4dc1989744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -750,7 +750,7 @@ void waybar::Bar::getModules(const Factory& factory, const std::string& pos, Gtk
modules_right_.emplace_back(module_sp); modules_right_.emplace_back(module_sp);
} }
} }
module->dp.connect([module, &name] { module->dp.connect([module, name] {
try { try {
module->update(); module->update();
} catch (const std::exception& e) { } catch (const std::exception& e) {