Fixes double allocation
Merge pull request #286 from manuelbua/tmxmaploader-fix

Fixes double allocation