From 11f55a7561b54daec114da74333eb75d106de3ae Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 20 May 2023 18:07:15 +0200 Subject: [PATCH] fix: File handles not being closed correctly --- lib/external/libwolv | 2 +- plugins/builtin/source/content/providers/file_provider.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/external/libwolv b/lib/external/libwolv index 038a508ac..7e368abca 160000 --- a/lib/external/libwolv +++ b/lib/external/libwolv @@ -1 +1 @@ -Subproject commit 038a508acec9486b0cc2e9478edaab861a95e112 +Subproject commit 7e368abca669c5913d803e997a32aec23f47f3c4 diff --git a/plugins/builtin/source/content/providers/file_provider.cpp b/plugins/builtin/source/content/providers/file_provider.cpp index f239fdd60..e66188126 100644 --- a/plugins/builtin/source/content/providers/file_provider.cpp +++ b/plugins/builtin/source/content/providers/file_provider.cpp @@ -211,6 +211,8 @@ namespace hex::plugin::builtin { this->m_file.map(); this->m_fileSize = this->m_file.getSize(); + this->m_file.close(); + return true; }