mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
client-node: clear resource after freeing mem
Some of the mem unref might send a message to the client. This is not actually the case right now but just to be safe for the future.
This commit is contained in:
parent
a966d4806b
commit
3e0050d1cd
1 changed files with 3 additions and 3 deletions
|
|
@ -1346,9 +1346,6 @@ static void node_free(void *data)
|
||||||
while ((mm = pw_mempool_find_tag(impl->client->pool, tag, sizeof(uint32_t))) != NULL)
|
while ((mm = pw_mempool_find_tag(impl->client->pool, tag, sizeof(uint32_t))) != NULL)
|
||||||
pw_memmap_free(mm);
|
pw_memmap_free(mm);
|
||||||
|
|
||||||
if (impl->resource)
|
|
||||||
pw_resource_destroy(impl->resource);
|
|
||||||
|
|
||||||
if (impl->activation)
|
if (impl->activation)
|
||||||
pw_memblock_free(impl->activation);
|
pw_memblock_free(impl->activation);
|
||||||
|
|
||||||
|
|
@ -1358,6 +1355,9 @@ static void node_free(void *data)
|
||||||
}
|
}
|
||||||
pw_array_clear(&impl->io_areas);
|
pw_array_clear(&impl->io_areas);
|
||||||
|
|
||||||
|
if (impl->resource)
|
||||||
|
pw_resource_destroy(impl->resource);
|
||||||
|
|
||||||
pw_map_clear(&impl->ports[0]);
|
pw_map_clear(&impl->ports[0]);
|
||||||
pw_map_clear(&impl->ports[1]);
|
pw_map_clear(&impl->ports[1]);
|
||||||
pw_map_clear(&impl->io_map);
|
pw_map_clear(&impl->io_map);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue