Patched memory leak. Procedurally generated meshes were not deleted properly.