idk how their contract works.
It depends om what is written in his contract. If they a clause which mentions that if a player gets benched, he will get reduced salary or no salary, then he wont get as much.
But if not then he will get the told amount until some other team buys him out.
That's why you see orgs selling players for free because they don't want to keep giving them salary.
For eg - Bale is Real Madrid was happy to warm the bench because he was getting $$$.