itsapi / pycraft

A Minecraft-inspired game for the terminal
GNU General Public License v2.0
198 stars 21 forks source link

C Memory Leak #129

Open olls opened 7 years ago

olls commented 7 years ago

There definitely seems to be a memory leak in the C renderer. After leaving it running for a few hours it slowed to a complete stop.

olls commented 7 years ago

This is definitely a problem

olls commented 3 years ago

Could be caused by the ObjectsMap. It will malloc new Objects on a collision, which will probably happen when there are multiple mobs on screen, but it never free's them.