After reading this post, I also disconnected all extensions, but it didn't really work. What I noticed after a while, is that I when I opened too many tabs, after quiting and restarting Safari, many of them were apparently closed or lost. I just didn't see them, but Safari kept consuming high amounts of memory. I started looking for these suposedly closed tabs (they were there, opened somewhere), and after closing one or two (or opening a new Safari window), they suddenly reappeared. So I just closed them all, and then Safari started to behave. Safari doesn't heat my computer anymore, unless I have too many tabs opened and some of them have flash. It reduced considerably the amount of memory used.
Although it happened, in the end, that the battery and the graphic card were both damaged. So my computer does overheat sometimes, especially when doing backups or using graphics, but that's because there was a hardware problem after all.