mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-25 19:50:04 +01:00
module-avb: mrp: cleaning allocated attribute on destroy
This commit is contained in:
parent
c1dbba1a31
commit
c10f869836
1 changed files with 7 additions and 0 deletions
|
|
@ -60,7 +60,14 @@ struct mrp {
|
|||
static void mrp_destroy(void *data)
|
||||
{
|
||||
struct mrp *mrp = data;
|
||||
struct attribute *a, *t;
|
||||
spa_hook_remove(&mrp->server_listener);
|
||||
|
||||
spa_list_for_each_safe(a, t, &mrp->attributes, link) {
|
||||
spa_list_remove(&a->link);
|
||||
free(a);
|
||||
}
|
||||
|
||||
free(mrp);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue