mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
example: fix invalid free() operation in bluez-session
obj->handle should not be directly freed; instead, it should be freed using "pw_unload_spa_handle", otherwise there will be segmentation fault.
This commit is contained in:
parent
8848923d82
commit
7fa64a8b71
1 changed files with 1 additions and 1 deletions
|
|
@ -267,7 +267,7 @@ static void remove_object(struct impl *impl, struct object *obj)
|
||||||
spa_list_remove(&obj->link);
|
spa_list_remove(&obj->link);
|
||||||
spa_hook_remove(&obj->listener);
|
spa_hook_remove(&obj->listener);
|
||||||
pw_proxy_destroy(obj->proxy);
|
pw_proxy_destroy(obj->proxy);
|
||||||
free(obj->handle);
|
pw_unload_spa_handle(obj->handle);
|
||||||
free(obj);
|
free(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue