mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-06 03:40:14 +01:00
tools: cleanup our clients in the eis demo server
Where we're interrupted before a disconnect event from the client, we would leave the demo client hanging. This upsets valgrind.
This commit is contained in:
parent
129eabcd29
commit
92f92bc3a5
1 changed files with 5 additions and 0 deletions
|
|
@ -625,5 +625,10 @@ int main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
struct eis_demo_client *democlient;
|
||||
list_for_each_safe(democlient, &server.clients, link) {
|
||||
eis_demo_client_unref(democlient);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue