free the allocated import

This commit is contained in:
wise86Android
2016-01-16 23:37:24 +01:00
parent f0fca826db
commit d51c2e6435
3 changed files with 15 additions and 3 deletions
+4
View File
@@ -96,6 +96,8 @@ namespace Assimp
/** will return all registered importers. */
void GetImporterInstanceList(std::vector< BaseImporter* >& out);
/** will delete all registered importers. */
void DeleteImporterInstanceList(std::vector< BaseImporter* >& out);
} // namespace assimp
@@ -648,6 +650,8 @@ ASSIMP_API C_STRUCT const aiImporterDesc* aiGetImporterDesc( const char *extensi
}
}
DeleteImporterInstanceList(out);
return desc;
}