mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: close fd before destroying the loop
This commit is contained in:
parent
279e6706b2
commit
4314fba7c4
1 changed files with 2 additions and 2 deletions
|
|
@ -115,10 +115,10 @@ static void snd_pcm_pipewire_free(snd_pcm_pipewire_t *pw)
|
|||
pw_core_destroy(pw->core);
|
||||
if (pw->main_loop)
|
||||
pw_thread_loop_destroy(pw->main_loop);
|
||||
if (pw->loop)
|
||||
pw_loop_destroy(pw->loop);
|
||||
if (pw->fd >= 0)
|
||||
spa_system_close(pw->loop->system, pw->fd);
|
||||
if (pw->loop)
|
||||
pw_loop_destroy(pw->loop);
|
||||
free(pw);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue