mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
75eacb95ef
In waybar::modules::Battery::~Battery(), store a copy of the batteries_ iterator before calling erase(), as erase() invalidates the iterator. Prior to this change, disconnecting outputs resulted in a SEGFAULT when using the battery module; e.g., [debug] Received SIGCHLD in signalThread [debug] Cmd exited with code 0 [debug] Received SIGCHLD in signalThread [debug] Cmd exited with code 0 [debug] Received SIGCHLD in signalThread [debug] Cmd exited with code 0 [debug] Output removed: AU Optronics 0x2336 [info] Bar configured (width: 1280, height: 25) for output: eDP-1 [info] Bar configured (width: 1280, height: 25) for output: eDP-1 zsh: segmentation fault (core dumped) ./build/waybar -l trace Signed-off-by: Lukas Fleischer <lfleischer@lfos.de> |
||
---|---|---|
.. | ||
modules | ||
util | ||
AIconLabel.cpp | ||
ALabel.cpp | ||
AModule.cpp | ||
bar.cpp | ||
client.cpp | ||
config.cpp | ||
factory.cpp | ||
group.cpp | ||
main.cpp |