If it's not the battery, getting that hot would have pretty much ruined it anyway, so you should have it replaced - along with whatever caused it to get that hot. The phone is still under warranty, so contact whatever warranty service there is in your country (uBreakiFix in the US).