Fix memory leak in D3MFOpcPackage
- closes https://github.com/assimp/assimp/issues/4628pull/4629/head
parent
a1f9a299e9
commit
e254f80a3a
|
@ -186,6 +186,9 @@ D3MFOpcPackage::D3MFOpcPackage(IOSystem *pIOHandler, const std::string &rFile) :
|
|||
D3MFOpcPackage::~D3MFOpcPackage() {
|
||||
mZipArchive->Close(mRootStream);
|
||||
delete mZipArchive;
|
||||
for (auto tex : mEmbeddedTextures) {
|
||||
delete mEmbeddedTextures[i];
|
||||
}
|
||||
}
|
||||
|
||||
IOStream *D3MFOpcPackage::RootStream() const {
|
||||
|
|
Loading…
Reference in New Issue