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/pin_click_manager.hpp | |
parent | 1ab260d29a389dda2daebc258ae29f97c19bd6c8 (diff) |
[bookmark] Fixed memory leaks in UserMarkCopy.
Diffstat (limited to 'map/pin_click_manager.hpp')
-rw-r--r-- | map/pin_click_manager.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/map/pin_click_manager.hpp b/map/pin_click_manager.hpp index 8f9a5d0e66..ae990f1cfc 100644 --- a/map/pin_click_manager.hpp +++ b/map/pin_click_manager.hpp @@ -5,8 +5,9 @@ #include "../geometry/point2d.hpp" -#include "../std/shared_ptr.hpp" #include "../std/function.hpp" +#include "../std/shared_ptr.hpp" +#include "../std/unique_ptr.hpp" class Framework; @@ -19,7 +20,6 @@ class PinClickManager { Framework & m_f; - void OnActivateUserMark(UserMarkCopy * mark); void OnDismiss(); void SetBalloonVisible(bool isVisible); @@ -41,7 +41,7 @@ private: /// @name Platform dependent listeners to show special activities. //@{ // You must delete UserMarkCopy obtained by this callback - typedef function<void (UserMarkCopy *)> TUserMarkListener; + typedef function<void (unique_ptr<UserMarkCopy>)> TUserMarkListener; TUserMarkListener m_userMarkListener; typedef function<void (void)> TDismissListener; TDismissListener m_dismissListener; |