First, we need to define the first law of thermodynamics. This law states that in an isolated system, energy can neither be created nor destroyed, it can just be transformed from one form to another.
Based on this, if we assume that the refrigerator is and isolated system, then if 492 Joules of energy was released into the room, this means that 492 Joules of energy (heat) was removed from food inside the refrigerator.