Fix memory leak

This commit is contained in:
Alex
2023-07-02 14:12:49 -04:00
committed by PencilAmazing
parent 3838a8aaf8
commit 6f3bfb5b60
+1
View File
@@ -371,6 +371,7 @@ void ObjFileMtlImporter::getTexture() {
if (m_pModel->mCurrentMaterial == nullptr) {
m_pModel->mCurrentMaterial = new ObjFile::Material();
m_pModel->mCurrentMaterial->MaterialName.Set("Empty_Material");
m_pModel->mMaterialMap["Empty_Material"] = m_pModel->mCurrentMaterial;
}
const char *pPtr(&(*m_DataIt));