diff --git a/src/commands.cpp b/src/commands.cpp index 75cfa71..330f8b9 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -301,6 +301,7 @@ int HandleRead(const std::string &file, const std::string &target, uint32_t fileSize; auto fileContent = ReadFile(hArchive, file.c_str(), &fileSize, lcid); if (!fileContent) { + CloseMpqArchive(hArchive); return 1; }