Closed davidkalloc closed 7 years ago
Probably a typo. Other unique_ptr uses are correct.
unique_ptr
std::unique_ptr<uint32_t> remap(new (std::nothrow) uint32_t[mnFaces]);
Should be:
std::unique_ptr<uint32_t[]> remap(new (std::nothrow) uint32_t[mnFaces]);
This mistake appears in two places, both for an array named remap.
remap
https://github.com/Microsoft/DirectXMesh/blob/60028e807a602277f23a89a6334fd42bda473d5a/Meshconvert/Mesh.cpp#L609
https://github.com/Microsoft/DirectXMesh/blob/60028e807a602277f23a89a6334fd42bda473d5a/Meshconvert/Mesh.cpp#L642
Thanks. Fixed!
Probably a typo. Other
unique_ptr
uses are correct.std::unique_ptr<uint32_t> remap(new (std::nothrow) uint32_t[mnFaces]);
Should be:
std::unique_ptr<uint32_t[]> remap(new (std::nothrow) uint32_t[mnFaces]);
This mistake appears in two places, both for an array named
remap
.https://github.com/Microsoft/DirectXMesh/blob/60028e807a602277f23a89a6334fd42bda473d5a/Meshconvert/Mesh.cpp#L609
https://github.com/Microsoft/DirectXMesh/blob/60028e807a602277f23a89a6334fd42bda473d5a/Meshconvert/Mesh.cpp#L642