mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
Clean up remote list at deinit
This commit is contained in:
parent
4321cffc87
commit
f425eddb62
@ -884,6 +884,15 @@ remote_pairing_init(void)
|
||||
void
|
||||
remote_pairing_deinit(void)
|
||||
{
|
||||
struct remote_info *ri;
|
||||
|
||||
for (ri = remote_list; remote_list; ri = remote_list)
|
||||
{
|
||||
remote_list = ri->next;
|
||||
|
||||
free_remote(ri);
|
||||
}
|
||||
|
||||
close(pairing_pipe[0]);
|
||||
close(pairing_pipe[1]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user