mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
suspend-node: remove idle handler in destroy
Or else the idle handler might go off when we are already destroyed.
This commit is contained in:
parent
d8d4e2f335
commit
0380c6d91e
1 changed files with 1 additions and 0 deletions
|
|
@ -184,6 +184,7 @@ handle_node(struct impl *impl, struct sm_object *object)
|
||||||
|
|
||||||
static void destroy_node(struct impl *impl, struct node *node)
|
static void destroy_node(struct impl *impl, struct node *node)
|
||||||
{
|
{
|
||||||
|
remove_idle_timeout(node);
|
||||||
spa_list_remove(&node->link);
|
spa_list_remove(&node->link);
|
||||||
spa_hook_remove(&node->listener);
|
spa_hook_remove(&node->listener);
|
||||||
sm_object_remove_data((struct sm_object*)node->obj, SESSION_KEY);
|
sm_object_remove_data((struct sm_object*)node->obj, SESSION_KEY);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue