waybar/src
Lukas Fleischer 75eacb95ef Fix SEGFAULT in battery module
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>
2023-05-22 10:16:30 -04:00
..
modules Fix SEGFAULT in battery module 2023-05-22 10:16:30 -04:00
util Rename function name 2023-03-25 17:33:01 +01:00
AIconLabel.cpp refactor: disable icon by default 2022-03-10 09:48:50 +01:00
ALabel.cpp refactor: lint 2022-04-06 08:37:19 +02:00
AModule.cpp Issue #2030. AModule enable_click & enable_scroll 2023-03-01 23:39:36 +03:00
bar.cpp Merge pull request #1589 from qubidt/module-group-orientation 2023-03-02 19:42:22 +01:00
client.cpp fix: adapt to fmt 9.0.0 breaking changes 2022-07-13 22:36:32 -07:00
config.cpp config:output:Allow multiple exclusions & wildcard 2023-03-13 00:44:07 +00:00
factory.cpp Merge pull request #2103 from xdavidel/dwl-module 2023-04-17 09:01:00 +02:00
group.cpp group module: configurable orientation 2022-09-03 18:37:35 -05:00
main.cpp Fixing memory leak on update UPower tooltip 2023-02-08 17:19:51 +11:00