Disposing of SWD infested fruit
Thanks for your composting question, Marianne. At least one Extension service does not recommend composting diseased fruit, since compost heaps/bins rarely get hot enough to kill the larva. As this (very excellent) source says:
"Do not bury infested fruit or place fruit in a compost pile."
The Extension writer also has some helpful information about sanitation to stem, insofar as is possible, future infestations. Good luck!