you will only make the problem worse, since fruit flies can actually breed in the cup. to trap and kill the pests, use a bowl instead, put plastic wrap over it, and poke a small hole in it. put it in your kitchen. the fruit flies will be able to get in, but they'll have a hard time escaping, says hedges.