mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-09 22:00: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);
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user