Fix issue in memory handling of Mesh clearing.

The issue was that the memory pointed to by pointers in a vector
was not freed before the pointers were cleared from the vector.
The fix simply deletes each pointer before clearing the vector.
Merge branch 'master' of https://github.com/enigma-dev/enigma-dev