Indeed, National Gardening Association forum member Linneaj suggests freezing then baking potting soil to kill fungus gnats — ...
If you start to notice lots of little black flies around your plants, it's likely you're having the same problem I once had - a fungus gnat ... potting mix for your plant It all starts in the soil ...