mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
backend null check for listener remove
This commit is contained in:
parent
9a099d7533
commit
812dcf67fb
1 changed files with 3 additions and 1 deletions
|
|
@ -91,7 +91,9 @@ void server_run(struct sway_server *server) {
|
|||
}
|
||||
|
||||
static void sway_subbackend_destroy(struct sway_subbackend *subbackend) {
|
||||
wl_list_remove(&subbackend->backend_destroy.link);
|
||||
if (subbackend->backend) {
|
||||
wl_list_remove(&subbackend->backend_destroy.link);
|
||||
}
|
||||
wl_list_remove(&subbackend->link);
|
||||
// free(name)?
|
||||
free(subbackend);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue