From 1c277b5ffdfbed4a25d990ccb8556d820eb6c457 Mon Sep 17 00:00:00 2001 From: Uladzislau Nikalayevich Date: Sun, 11 Jun 2023 21:00:28 +0300 Subject: [PATCH] Fix #3062: Fix missing file close call during IMG unloading (#3063) --- Client/mods/deathmatch/logic/CClientIMG.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Client/mods/deathmatch/logic/CClientIMG.cpp b/Client/mods/deathmatch/logic/CClientIMG.cpp index e33d4513215..5d553bbfd67 100644 --- a/Client/mods/deathmatch/logic/CClientIMG.cpp +++ b/Client/mods/deathmatch/logic/CClientIMG.cpp @@ -32,6 +32,9 @@ CClientIMG::~CClientIMG() m_pImgManager->RemoveFromList(this); if (IsStreamed()) StreamDisable(); + + if (m_ifs.is_open()) + Unload(); } bool CClientIMG::Load(fs::path filePath)