Wouldn't it burn or anything?
It's impossible to burn anything in a washing machine - the water doesn't get that hot. Worst possible scenario - it will set in and stain if the perfume is oil based.
I don't think it would burn, but maybe wait until it is dried before washing? It will be in water anyways so I dont see any harm..