mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
client-node: always remove the previous io memory
This commit is contained in:
parent
fa792a91a0
commit
f6fca48459
2 changed files with 12 additions and 11 deletions
|
|
@ -403,9 +403,10 @@ client_node_set_io(void *object,
|
|||
void *ptr;
|
||||
uint32_t tag[5] = { data->remote_id, id, };
|
||||
|
||||
if ((mm = pw_mempool_find_tag(data->remote->pool, tag, sizeof(tag))) != NULL)
|
||||
pw_memmap_free(mm);
|
||||
|
||||
if (memid == SPA_ID_INVALID) {
|
||||
if ((mm = pw_mempool_find_tag(data->remote->pool, tag, sizeof(tag))) != NULL)
|
||||
pw_memmap_free(mm);
|
||||
mm = ptr = NULL;
|
||||
size = 0;
|
||||
}
|
||||
|
|
@ -715,10 +716,10 @@ client_node_port_set_io(void *object,
|
|||
goto error_exit;
|
||||
}
|
||||
|
||||
if (memid == SPA_ID_INVALID) {
|
||||
if ((mm = pw_mempool_find_tag(data->remote->pool, tag, sizeof(tag))) != NULL)
|
||||
pw_memmap_free(mm);
|
||||
if ((mm = pw_mempool_find_tag(data->remote->pool, tag, sizeof(tag))) != NULL)
|
||||
pw_memmap_free(mm);
|
||||
|
||||
if (memid == SPA_ID_INVALID) {
|
||||
mm = ptr = NULL;
|
||||
size = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue