mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
pulse: handle memory user_data of NULL
This commit is contained in:
parent
35376fc415
commit
94c23b7ed1
1 changed files with 2 additions and 1 deletions
|
|
@ -1561,6 +1561,7 @@ pa_operation* pa_stream_flush(pa_stream *s, pa_stream_success_cb_t cb, void *use
|
||||||
spa_list_remove(&m->link);
|
spa_list_remove(&m->link);
|
||||||
spa_list_append(&s->free, &m->link);
|
spa_list_append(&s->free, &m->link);
|
||||||
m->user_data = NULL;
|
m->user_data = NULL;
|
||||||
|
if (b)
|
||||||
b->user_data = NULL;
|
b->user_data = NULL;
|
||||||
}
|
}
|
||||||
s->ready_bytes = 0;
|
s->ready_bytes = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue