diff options
author | Yuri Gorshenin <ygorshenin@chromium.org> | 2015-03-13 13:47:42 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:39:06 +0300 |
commit | e300e2b4313b9eb2fa9d5ef3cdad1216ffec03fa (patch) | |
tree | fe4ba1deabc22930e7e92f05dffb55bf1b04d4e1 /map/map_tests | |
parent | e8919af8ae240b37a652d93a1b82b969326dd8aa (diff) |
[bookmarks] Fixed memory leaks in Bookmarks test.
Diffstat (limited to 'map/map_tests')
-rw-r--r-- | map/map_tests/bookmarks_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/map/map_tests/bookmarks_test.cpp b/map/map_tests/bookmarks_test.cpp index 6b0b75f8e0..4cf5fa6b53 100644 --- a/map/map_tests/bookmarks_test.cpp +++ b/map/map_tests/bookmarks_test.cpp @@ -12,7 +12,7 @@ #include "../../coding/internal/file_data.hpp" #include "../../std/fstream.hpp" - +#include "../../std/unique_ptr.hpp" namespace { @@ -567,7 +567,7 @@ UNIT_TEST(Bookmarks_InnerFolder) UNIT_TEST(BookmarkCategory_EmptyName) { Framework framework; - BookmarkCategory * pCat = new BookmarkCategory("", framework); + unique_ptr<BookmarkCategory> pCat(new BookmarkCategory("", framework)); pCat->AddBookmark(m2::PointD(0, 0), BookmarkData("", "placemark-red")); pCat->SaveToKMLFile(); |