free the allocated import

This commit is contained in:
wise86Android
2016-01-16 15:02:45 +01:00
parent f0fca826db
commit d51c2e6435
3 changed files with 15 additions and 3 deletions

View File

@@ -321,4 +321,12 @@ void GetImporterInstanceList(std::vector< BaseImporter* >& out)
#endif
}
/** will delete all registered importers. */
void DeleteImporterInstanceList(std::vector< BaseImporter* >& deleteList){
for(size_t i= 0; i<deleteList.size();++i){
delete deleteList[i];
deleteList[i]=NULL;
}//for
}
} // namespace Assimp