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.cpp | |
parent | 1ab260d29a389dda2daebc258ae29f97c19bd6c8 (diff) |
[bookmark] Fixed memory leaks in UserMarkCopy.
Diffstat (limited to 'map/pin_click_manager.cpp')
-rw-r--r-- | map/pin_click_manager.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/map/pin_click_manager.cpp b/map/pin_click_manager.cpp index f95d844ead..54597b12e9 100644 --- a/map/pin_click_manager.cpp +++ b/map/pin_click_manager.cpp @@ -28,7 +28,7 @@ void PinClickManager::Hide() void PinClickManager::OnShowMark(UserMark const * mark) { if (mark != NULL) - OnActivateUserMark(mark->Copy()); + m_userMarkListener(mark->Copy()); SetBalloonVisible(mark != NULL); } @@ -57,11 +57,6 @@ void PinClickManager::ClearListeners() m_dismissListener = TDismissListener(); } -void PinClickManager::OnActivateUserMark(UserMarkCopy * mark) -{ - m_userMarkListener(mark); -} - void PinClickManager::OnDismiss() { // Can be called before the listeners will be attached (clearing on activity start). |