There is a memory leak

This commit is contained in:
Dynamitos committed 2023-11-30 11:51:53 +01:00
1 parent d1475d506e
commit 1493627ceb
20 files changed
+91 -102

No files matched your search

+1 -1
View File
@@ -109,7 +109,7 @@ void MeshLoader::loadMaterials(const aiScene* scene, const std::string& baseName
if(material->GetTexture(aiTextureType_NORMALS, 0, &texPath) == AI_SUCCESS)
{
}
std::string outMatFilename = matCode["name"].get<std::string>().append(".asset");
std::string outMatFilename = matCode["name"].get<std::string>().append(".json");
std::ofstream outMatFile = std::ofstream(meshDirectory / outMatFilename);
outMatFile << std::setw(4) << matCode;
outMatFile.flush();