Fix memory problem

it didn't delete the mesh.