diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-02-28 22:33:38 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:49:24 +0300 |
commit | 4a3989ff23d90c112b50f690e7a2c2329aa54389 (patch) | |
tree | 6c4476e3d423686acbf55f180c39abb55561b929 /indexer/feature_processor.hpp | |
parent | 78fb143a7901288395d5cc70b0aa4e0b9ff707fc (diff) |
Platform::GetReader returns unique_ptr. Fix leaks.
Diffstat (limited to 'indexer/feature_processor.hpp')
-rw-r--r-- | indexer/feature_processor.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indexer/feature_processor.hpp b/indexer/feature_processor.hpp index 6db645f9b1..e8b7b636d6 100644 --- a/indexer/feature_processor.hpp +++ b/indexer/feature_processor.hpp @@ -23,6 +23,6 @@ void ForEachFromDat(ModelReaderPtr reader, ToDo && toDo) template <class ToDo> void ForEachFromDat(string const & fPath, ToDo && toDo) { - ForEachFromDat(new FileReader(fPath), toDo); + ForEachFromDat(make_unique<FileReader>(fPath), toDo); } } |