소스 검색

Fixed delete operator.

Marc-Antoine Lortie 5 년 전
부모
커밋
b74562f8a0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      code/MDL/MDLLoader.cpp

+ 1 - 1
code/MDL/MDLLoader.cpp

@@ -188,7 +188,7 @@ void MDLImporter::InternReadFile( const std::string& pFile,
     // delete the file buffer and cleanup.
     auto DeleteBufferAndCleanup = [&]() {
         if (mBuffer) {
-            delete mBuffer;
+            delete [] mBuffer;
             mBuffer = nullptr;
         }
         AI_DEBUG_INVALIDATE_PTR(pIOHandler);