Fixed delete operator.
parent
247667233d
commit
b74562f8a0
|
@ -188,7 +188,7 @@ void MDLImporter::InternReadFile( const std::string& pFile,
|
||||||
// delete the file buffer and cleanup.
|
// delete the file buffer and cleanup.
|
||||||
auto DeleteBufferAndCleanup = [&]() {
|
auto DeleteBufferAndCleanup = [&]() {
|
||||||
if (mBuffer) {
|
if (mBuffer) {
|
||||||
delete mBuffer;
|
delete [] mBuffer;
|
||||||
mBuffer = nullptr;
|
mBuffer = nullptr;
|
||||||
}
|
}
|
||||||
AI_DEBUG_INVALIDATE_PTR(pIOHandler);
|
AI_DEBUG_INVALIDATE_PTR(pIOHandler);
|
||||||
|
|
Loading…
Reference in New Issue