So have you had to had to battle with the fruit flies? I have, and it has driven me bonkers.
I have finally found a remedy that works for me.
Fill a ramekin sized container half way with apple cider vinegar and a few drops of soap.
Watch those suckers die!