module-avb: free the right source object

This commit is contained in:
Wim Taymans 2023-03-16 12:55:10 +01:00
parent a0717a1981
commit 37ac2e148e

View file

@ -311,7 +311,7 @@ void avdecc_server_free(struct server *server)
if (server->source) if (server->source)
pw_loop_destroy_source(impl->loop, server->source); pw_loop_destroy_source(impl->loop, server->source);
if (server->timer) if (server->timer)
pw_loop_destroy_source(impl->loop, server->source); pw_loop_destroy_source(impl->loop, server->timer);
spa_hook_list_clean(&server->listener_list); spa_hook_list_clean(&server->listener_list);
free(server); free(server);
} }