free the allocated import
This commit is contained in:
@@ -90,6 +90,8 @@ using namespace Assimp::Formatter;
|
||||
namespace Assimp {
|
||||
// ImporterRegistry.cpp
|
||||
void GetImporterInstanceList(std::vector< BaseImporter* >& out);
|
||||
void DeleteImporterInstanceList(std::vector< BaseImporter* >& out);
|
||||
|
||||
// PostStepRegistry.cpp
|
||||
void GetPostProcessingStepInstanceList(std::vector< BaseProcess* >& out);
|
||||
}
|
||||
@@ -173,8 +175,7 @@ Importer::Importer()
|
||||
Importer::~Importer()
|
||||
{
|
||||
// Delete all import plugins
|
||||
for( unsigned int a = 0; a < pimpl->mImporter.size(); a++)
|
||||
delete pimpl->mImporter[a];
|
||||
DeleteImporterInstanceList(pimpl->mImporter);
|
||||
|
||||
// Delete all post-processing plug-ins
|
||||
for( unsigned int a = 0; a < pimpl->mPostProcessingSteps.size(); a++)
|
||||
@@ -1113,4 +1114,3 @@ void Importer::GetMemoryRequirements(aiMemoryInfo& in) const
|
||||
}
|
||||
in.total += in.materials;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user