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>2015-09-15 11:12:32 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:05:17 +0300
commitfb7b1382a8783c863e58bacb31ada0032e9661c2 (patch)
tree703713b91549f3e375b10d2d409d46df50f6cf36 /routing
parentb2fd03c0877ac34ebe54cc256eb809a5fd289478 (diff)
[indexer] Fixed memory leaks related to MwmValues.
Diffstat (limited to 'routing')
-rw-r--r--routing/routing_tests/road_graph_builder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/routing/routing_tests/road_graph_builder.cpp b/routing/routing_tests/road_graph_builder.cpp
index 73e329c431..82b6da646c 100644
--- a/routing/routing_tests/road_graph_builder.cpp
+++ b/routing/routing_tests/road_graph_builder.cpp
@@ -38,17 +38,17 @@ public:
private:
/// @name MwmSet overrides
//@{
- MwmInfo * CreateInfo(platform::LocalCountryFile const &) const override
+ unique_ptr<MwmInfo> CreateInfo(platform::LocalCountryFile const &) const override
{
- MwmInfo * info = new MwmInfo();
+ unique_ptr<MwmInfo> info(new MwmInfo());
info->m_maxScale = 1;
info->m_limitRect = m2::RectD(0, 0, 1, 1);
info->m_version.format = version::lastFormat;
return info;
}
- MwmValueBase * CreateValue(MwmInfo &) const override
+ unique_ptr<MwmValueBase> CreateValue(MwmInfo &) const override
{
- return new MwmValueBase();
+ return make_unique<MwmValueBase>();
}
//@}