diff --git a/include/assimp/MemoryIOWrapper.h b/include/assimp/MemoryIOWrapper.h index 87b28ac91..15434dab7 100644 --- a/include/assimp/MemoryIOWrapper.h +++ b/include/assimp/MemoryIOWrapper.h @@ -159,7 +159,7 @@ public: /** Destructor. */ ~MemoryIOSystem() { for (auto &it : created_streams) { - MemoryIOSystem::Close(it); + delete it; } }