Corrects map's marker generator to avoid memory leaks
Merge pull request #2 from Gywem/refinement

Corrects map's marker generator to avoid memory leaks