waybar/src/modules
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
..
cpu fix: cpu_load pushed twice to the vector 2023-01-05 01:10:04 +01:00
dwl fix: lint 2023-04-17 09:01:14 +02:00
hyprland Fix misinterpreting return value of getaddrinfo call which caused an early return for Hyprland language 2023-04-23 13:31:02 +02:00
memory fix: compilation errors with cpp_std=c++20 2023-01-20 22:50:02 -08:00
mpd refactor: make linter happy. 2023-03-08 14:35:07 +00:00
mpris mpris: Hide label if empty 2023-05-10 13:43:43 +02:00
river Merge pull request #1950 from tleydxdy/shironeko 2023-04-17 09:06:43 +02:00
sni refactor: remove warning 2022-12-01 08:45:12 +01:00
sway Rewrite entire label in sway/window module 2023-03-25 17:37:49 +01:00
upower Fixing memory leak on update UPower tooltip 2023-02-08 17:19:51 +11:00
wlr add persistent format-icon 2023-05-05 08:52:37 -03:00
backlight.cpp fix: lint 2023-04-17 09:01:14 +02:00
battery.cpp Fix SEGFAULT in battery module 2023-05-22 10:16:30 -04:00
bluetooth.cpp fix: compilation errors with cpp_std=c++20 2023-01-20 22:50:02 -08:00
cava.cpp Cava module 2023-04-15 02:36:15 +03:00
clock.cpp ISSUE#2073 2023-04-13 17:16:03 +03:00
custom.cpp custom module: free memory returned by libc's getline 2023-03-29 21:18:13 +08:00
disk.cpp fix: compilation errors with cpp_std=c++20 2023-01-20 22:50:02 -08:00
gamemode.cpp Fix some typos 2023-02-25 09:55:04 +01:00
idle_inhibitor.cpp fix: compilation errors with cpp_std=c++20 2023-01-20 22:50:02 -08:00
image.cpp fix: lint 2023-02-09 13:25:39 +01:00
inhibitor.cpp fix: compilation errors with cpp_std=c++20 2023-01-20 22:50:02 -08:00
jack.cpp fix: compilation errors with cpp_std=c++20 2023-01-20 22:50:02 -08:00
keyboard_state.cpp Merge branch 'master' into YearCalendar 2023-01-23 18:42:32 +03:00
network.cpp Open network module eventfd as close-on-exec 2023-05-21 12:13:17 -04:00
pulseaudio.cpp #2094 pulseaudio apply states 2023-04-07 14:19:45 +10:00
simpleclock.cpp modules: Revert button to label 2022-11-24 13:08:16 +01:00
sndio.cpp fix: compilation errors with cpp_std=c++20 2023-01-20 22:50:02 -08:00
temperature.cpp fix: compilation errors with cpp_std=c++20 2023-01-20 22:50:02 -08:00
user.cpp fix: compilation errors with cpp_std=c++20 2023-01-20 22:50:02 -08:00
wireplumber.cpp Made use of node_id_ 2023-04-11 10:51:25 +02:00