mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-20 09:10:03 +01:00
module-avb: adp: clean the allocated resources if any
This commit is contained in:
parent
2ff45313de
commit
8d99bf66bd
1 changed files with 7 additions and 0 deletions
|
|
@ -156,7 +156,14 @@ static int adp_message(void *data, uint64_t now, const void *message, int len)
|
||||||
static void adp_destroy(void *data)
|
static void adp_destroy(void *data)
|
||||||
{
|
{
|
||||||
struct adp *adp = data;
|
struct adp *adp = data;
|
||||||
|
struct entity *e, *t;
|
||||||
|
|
||||||
spa_hook_remove(&adp->server_listener);
|
spa_hook_remove(&adp->server_listener);
|
||||||
|
|
||||||
|
spa_list_for_each_safe(e, t, &adp->entities, link) {
|
||||||
|
entity_free(e);
|
||||||
|
}
|
||||||
|
|
||||||
free(adp);
|
free(adp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue