summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-04-29 16:41:41 +0200
committerWim Taymans <wtaymans@redhat.com>2020-04-29 16:41:41 +0200
commit0380c6d91e87edf5102c6bada15b07f4f7befe4a (patch)
treea123eb61b189b580c4da00f3d33f4a60eaa8ef2c
parentd8d4e2f3356bf3b7ac990ee7ca42235d723666f9 (diff)
suspend-node: remove idle handler in destroy
Or else the idle handler might go off when we are already destroyed.
-rw-r--r--src/examples/media-session/suspend-node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/examples/media-session/suspend-node.c b/src/examples/media-session/suspend-node.c
index 8d02c5ac..192b65cd 100644
--- a/src/examples/media-session/suspend-node.c
+++ b/src/examples/media-session/suspend-node.c
@@ -184,6 +184,7 @@ handle_node(struct impl *impl, struct sm_object *object)
static void destroy_node(struct impl *impl, struct node *node)
{
+ remove_idle_timeout(node);
spa_list_remove(&node->link);
spa_hook_remove(&node->listener);
sm_object_remove_data((struct sm_object*)node->obj, SESSION_KEY);