Indeed, National Gardening Association forum member Linneaj suggests freezing then baking potting soil to kill fungus gnats — ...
The soap in the vinegar will kill them. Try this if gnats have infected several plants ... A universal tip: Quarantine new ...