Fix memleak in MapRenderer

The collision layer was not deleted correctly. It was removed from the layers vector, but the memory was not freed.