Fix memory leak in Collada ZAE and 3MF ZipFile reading
Must close the file!
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user