I always used to leave hot/warm food out of the fridge to come closer to room temp before putting in the fridge. I had heard that a local food shelter had problems with food spoiling after putting a large pan of hot mashed potatoes in their fridge. Then, I was at our church preparing food with a friend of mine who owned a restaurant and I told her I was going to leave something out to cool before putting it in the fridge. She told me that this would never pass muster with the health department, that they required food service establishements to immediately refrigerate unused food.
That being said, I still leave my food out for a bit before putting it in the fridge.