summaryrefslogtreecommitdiff
path: root/plugins/Import
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-05-04 20:51:12 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-05-04 20:51:20 +0300
commit8add9a7f1c99136d7b23770a4a3bad484c6a32be (patch)
treec4478a5fd081dfe1969d46f9b7c31d881ad98a86 /plugins/Import
parent0da8addeabfc0af9af8f20a27585e797642a1de5 (diff)
fixes #1939 (txt file is still locked after import)
Diffstat (limited to 'plugins/Import')
-rw-r--r--plugins/Import/src/patterns.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Import/src/patterns.cpp b/plugins/Import/src/patterns.cpp
index 994618f364..54afc1d5ca 100644
--- a/plugins/Import/src/patterns.cpp
+++ b/plugins/Import/src/patterns.cpp
@@ -169,6 +169,9 @@ public:
iOffset = offsets[1];
}
+ if (m_pFile != nullptr)
+ ::UnmapViewOfFile(m_pFile);
+
if (m_hMap != nullptr)
::CloseHandle(m_hMap);