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:
authorExMix <rahuba.youri@mapswithme.com>2014-05-28 12:41:45 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:16:05 +0300
commit6fd88f4b62d013b799fbca88b59e816e2a02ecaa (patch)
treea8b3d3e24db7aef757ccaa0bd333c3bea676eb12 /map/user_mark_container.cpp
parent062d39a0787654fd892ac90bc606643be8e74517 (diff)
[core] crashes on wrong sequence calls. do it more secure
Diffstat (limited to 'map/user_mark_container.cpp')
-rw-r--r--map/user_mark_container.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/map/user_mark_container.cpp b/map/user_mark_container.cpp
index 3f47021cd9..fd52268421 100644
--- a/map/user_mark_container.cpp
+++ b/map/user_mark_container.cpp
@@ -120,8 +120,11 @@ void UserMarkContainer::ActivateMark(UserMark const * mark)
void UserMarkContainer::DiactivateMark()
{
- KillActivationAnim();
- m_activeMark = NULL;
+ if (m_activeMark != NULL)
+ {
+ KillActivationAnim();
+ m_activeMark = NULL;
+ }
}
void UserMarkContainer::Clear()