diff options
author | Yuri Gorshenin <ygorshenin@chromium.org> | 2015-03-11 18:48:58 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:38:48 +0300 |
commit | 8fdbf7ad9730aeaf152f8956e76c495368954b9d (patch) | |
tree | 21563aebe2bba51e51b7fe3546a47d0c6c4bb5f8 /map/bookmark.cpp | |
parent | 1ab260d29a389dda2daebc258ae29f97c19bd6c8 (diff) |
[bookmark] Fixed memory leaks in UserMarkCopy.
Diffstat (limited to 'map/bookmark.cpp')
-rw-r--r-- | map/bookmark.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/map/bookmark.cpp b/map/bookmark.cpp index edda1f5cad..c0813075fa 100644 --- a/map/bookmark.cpp +++ b/map/bookmark.cpp @@ -26,9 +26,9 @@ #include "../std/algorithm.hpp" #include "../std/auto_ptr.hpp" -UserMarkCopy * Bookmark::Copy() const +unique_ptr<UserMarkCopy> Bookmark::Copy() const { - return new UserMarkCopy(this, false); + return unique_ptr<UserMarkCopy>(new UserMarkCopy(this, false)); } graphics::DisplayList * Bookmark::GetDisplayList(UserMarkDLCache * cache) const |