Put a cup of something sweet out where the fruit flies are mixed with a little bit of vinegar and the flies will drown themselves. We used to do it at the grocery store I worked at around the tomatoes. Or just check and make sure you don't have any kind of mild or bruised fruit.