mirror of
https://github.com/swaywm/sway.git
synced 2026-05-05 06:46:49 -04:00
swaynag: fix segfault on exit when arguments are not correct
swaynag_destroy is called on all cleanup cases and needs the lists to be valid, just init them early
This commit is contained in:
parent
214e3030e1
commit
55c5a2b6ac
2 changed files with 2 additions and 2 deletions
|
|
@ -437,8 +437,6 @@ void swaynag_setup(struct swaynag *swaynag) {
|
|||
}
|
||||
|
||||
swaynag->scale = 1;
|
||||
wl_list_init(&swaynag->outputs);
|
||||
wl_list_init(&swaynag->seats);
|
||||
|
||||
struct wl_registry *registry = wl_display_get_registry(swaynag->display);
|
||||
wl_registry_add_listener(registry, ®istry_listener, swaynag);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue