From 953e976de6f7c771cef880c7537407a76fb64d64 Mon Sep 17 00:00:00 2001 From: Joshua Hyatt Date: Sat, 29 Aug 2020 23:56:50 -0600 Subject: [PATCH] Close stream when finished --- code/AssetLib/FBX/FBXImporter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/AssetLib/FBX/FBXImporter.cpp b/code/AssetLib/FBX/FBXImporter.cpp index 61f67b382..564317afe 100644 --- a/code/AssetLib/FBX/FBXImporter.cpp +++ b/code/AssetLib/FBX/FBXImporter.cpp @@ -159,6 +159,8 @@ void FBXImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSy contents[contents.size() - 1] = 0; const char *const begin = &*contents.begin(); + pIOHandler->Close(stream); + // broadphase tokenizing pass in which we identify the core // syntax elements of FBX (brackets, commas, key:value mappings) TokenList tokens;