mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
spa: don't free the mix_list ports
We can't move the mix_list ports to the free_list like that because the elements in the list use a different list to link together. Also, we don't need to free those ports at all because they will be freed when we move the port_list to the free_list.
This commit is contained in:
parent
5743849b50
commit
4715e36a5c
4 changed files with 2 additions and 7 deletions
|
|
@ -177,7 +177,6 @@ static int uninit_stream(struct seq_state *state, enum spa_direction direction)
|
|||
{
|
||||
struct seq_stream *stream = &state->streams[direction];
|
||||
spa_list_insert_list(&state->free_list, &stream->port_list);
|
||||
spa_list_insert_list(&state->free_list, &stream->mix_list);
|
||||
if (stream->codec)
|
||||
snd_midi_event_free(stream->codec);
|
||||
stream->codec = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue