Fixed memory leak with optional .obj file in far/tutorial_5_2

This commit is contained in:
barry 2020-01-21 14:32:11 -08:00
parent 69af58f7aa
commit e65a7fee5c

View File

@ -279,6 +279,7 @@ namespace {
posVector.resize(numVertices); posVector.resize(numVertices);
std::memcpy(&posVector[0], &shape->verts[0], numVertices * 3 * sizeof(float)); std::memcpy(&posVector[0], &shape->verts[0], numVertices * 3 * sizeof(float));
delete shape;
return refiner; return refiner;
} }
} // end namespace } // end namespace