Those legs point down, so in theory that solder could have run down due to overheat. For the heat dissipation, there is extra plate which presses these two components to the plate, which is removed in that picture. Anyhow, I changed that power transistor to a new, but unfortunately that wasn't the culprit. It does not "bang" anymore when power is plugged, but after a while the speaker starts knocking at around 0.5 Hz frequency.