pulse-server: sample-play: clean hook list

Clean the hook list when the object is destroyed.
This commit is contained in:
Barnabás Pőcze 2022-01-20 01:04:13 +01:00
parent 807fa19319
commit 05a99c0e15

View file

@ -211,6 +211,8 @@ void sample_play_destroy(struct sample_play *p)
if (p->stream)
pw_stream_destroy(p->stream);
spa_hook_list_clean(&p->hooks);
free(p);
}