mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
impl-core: clear the mempool
When a client sends hello, clear the mempool again to make sure it get's the new memory.
This commit is contained in:
parent
2bcbf62443
commit
f78e44c28a
1 changed files with 2 additions and 0 deletions
|
|
@ -162,6 +162,8 @@ static int core_hello(void *object, uint32_t version)
|
||||||
pw_log_debug(NAME" %p: hello %d from resource %p", context, version, resource);
|
pw_log_debug(NAME" %p: hello %d from resource %p", context, version, resource);
|
||||||
pw_map_for_each(&client->objects, destroy_resource, client);
|
pw_map_for_each(&client->objects, destroy_resource, client);
|
||||||
|
|
||||||
|
pw_mempool_clear(client->pool);
|
||||||
|
|
||||||
this->info.change_mask = PW_CORE_CHANGE_MASK_ALL;
|
this->info.change_mask = PW_CORE_CHANGE_MASK_ALL;
|
||||||
pw_core_resource_info(resource, &this->info);
|
pw_core_resource_info(resource, &this->info);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue