Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2015-09-03 11:59:17 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:03:39 +0300
commitef6d1d53836ca953215982c65479f79de9dcf5f0 (patch)
treecfd7da9bdc31f847d83ddce126ae87b47103b734 /coding/file_container.cpp
parent8038c2b1c821fee02baabe2b5c8d325d27b61a9a (diff)
Setting m_fd to -1 after closing.
Diffstat (limited to 'coding/file_container.cpp')
-rw-r--r--coding/file_container.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/coding/file_container.cpp b/coding/file_container.cpp
index ece196ed24..dedcd2a13a 100644
--- a/coding/file_container.cpp
+++ b/coding/file_container.cpp
@@ -143,7 +143,10 @@ void FilesMappingContainer::Close()
CloseHandle(m_hFile);
#else
if (m_fd != -1)
+ {
close(m_fd);
+ m_fd = -1;
+ }
#endif
m_name.clear();