remote: clear mem id

Clear the memid so that find_mem can't find old memory anymore.
This commit is contained in:
Wim Taymans 2018-03-01 13:08:45 +01:00
parent e9685c794f
commit 059571cec0

View file

@ -600,6 +600,7 @@ static void clear_memid(struct node_data *data, struct mem_id *mid)
fd = mid->fd;
mid->fd = -1;
mid->id = SPA_ID_INVALID;
pw_array_for_each(m, &data->mem_ids) {
if (m->fd == fd) {