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:
authorYuri Gorshenin <y@maps.me>2016-06-02 15:55:13 +0300
committerYuri Gorshenin <y@maps.me>2016-06-03 00:29:29 +0300
commit573021d80952bb9b82af4bac6b03622c7231b936 (patch)
tree01b19e942d4140fc537fc70771574cba62d2905d /indexer/mwm_set.hpp
parent3dff889eb4e1aa49bfd8f7226b7ec80499a33a8e (diff)
[index] Fixed massive descriptors leaks.
Diffstat (limited to 'indexer/mwm_set.hpp')
-rw-r--r--indexer/mwm_set.hpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/indexer/mwm_set.hpp b/indexer/mwm_set.hpp
index f7ab054fa7..9423077689 100644
--- a/indexer/mwm_set.hpp
+++ b/indexer/mwm_set.hpp
@@ -112,10 +112,7 @@ public:
};
public:
- // Default value 32=2^5 was from the very begining.
- // Later, we replaced my::Cache with the std::deque, but forgot to change
- // logarithm constant 5 with actual size 32. Now it's fixed.
- explicit MwmSet(size_t cacheSize = 32) : m_cacheSize(cacheSize) {}
+ explicit MwmSet(size_t cacheSize = 64) : m_cacheSize(cacheSize) {}
virtual ~MwmSet() = default;
class MwmValueBase