raop: free pending messages

This commit is contained in:
Wim Taymans 2026-05-04 13:16:37 +02:00
parent 7ab2b7d24a
commit 4cf5acf18d

View file

@ -580,6 +580,10 @@ int pw_rtsp_client_disconnect(struct pw_rtsp_client *client)
spa_list_remove(&msg->link); spa_list_remove(&msg->link);
free(msg); free(msg);
} }
spa_list_consume(msg, &client->pending, link) {
spa_list_remove(&msg->link);
free(msg);
}
pw_rtsp_client_emit_disconnected(client); pw_rtsp_client_emit_disconnected(client);
return 0; return 0;
} }