Fix memory leak in Collada ZAE and 3MF ZipFile reading

Must close the file!
This commit is contained in:
RichardTea
2019-07-25 09:54:39 +01:00
parent 9e04df810e
commit 5c6ea5d7ba
2 changed files with 4 additions and 4 deletions

View File

@@ -165,7 +165,7 @@ std::string ColladaParser::ReadZaeManifest(ZipArchiveIOSystem &zip_archive) {
}
std::unique_ptr<CIrrXML_IOStreamReader> mIOWrapper(new CIrrXML_IOStreamReader(manifestfile.get()));
irr::io::IrrXMLReader* manifest_reader = irr::io::createIrrXMLReader(mIOWrapper.get());
std::unique_ptr<irr::io::IrrXMLReader> manifest_reader(irr::io::createIrrXMLReader(mIOWrapper.get()));
while (manifest_reader->read())
{