mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-18 12:10:06 +00:00
Fixed memory leak with optional .obj file in far/tutorial_5_2
This commit is contained in:
parent
69af58f7aa
commit
e65a7fee5c
@ -279,6 +279,7 @@ namespace {
|
||||
posVector.resize(numVertices);
|
||||
std::memcpy(&posVector[0], &shape->verts[0], numVertices * 3 * sizeof(float));
|
||||
|
||||
delete shape;
|
||||
return refiner;
|
||||
}
|
||||
} // end namespace
|
||||
|
Loading…
Reference in New Issue
Block a user