Personally I think it depends on the material the frames are made from. These days there are methods of recycling plastic and timber framed windows, which you will find will cost less than landfill costs.
It's the simpler option to take things to landfill, but if its cheaper and greener to...