pulse: handle memory user_data of NULL

This commit is contained in:
Wim Taymans 2020-08-04 18:11:58 +02:00
parent 35376fc415
commit 94c23b7ed1

View file

@ -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_append(&s->free, &m->link);
m->user_data = NULL;
if (b)
b->user_data = NULL;
}
s->ready_bytes = 0;