media-session: remove listener

This commit is contained in:
Wim Taymans 2020-08-04 13:46:22 +02:00
parent 77bd687bac
commit 64067bafe3

View file

@ -108,6 +108,7 @@ handle_client(struct impl *impl, struct sm_object *object)
static void destroy_client(struct impl *impl, struct client *client)
{
spa_list_remove(&client->link);
spa_hook_remove(&client->listener);
sm_object_remove_data((struct sm_object*)client->obj, SESSION_KEY);
}