diff options
author | George Hazan <ghazan@miranda.im> | 2019-05-04 20:51:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-05-04 20:51:20 +0300 |
commit | 8add9a7f1c99136d7b23770a4a3bad484c6a32be (patch) | |
tree | c4478a5fd081dfe1969d46f9b7c31d881ad98a86 | |
parent | 0da8addeabfc0af9af8f20a27585e797642a1de5 (diff) |
fixes #1939 (txt file is still locked after import)
-rw-r--r-- | plugins/Import/src/patterns.cpp | 3 |
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); |