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-07-08 17:04:53 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:19:58 +0300
commit370d6169deecf827006b90c28202570a0e05b098 (patch)
tree97423bee2a8961c109628f9fc681a6a95bab0476 /map/bookmark.hpp
parent1545d93d63619030a38bdd5c08cdf13c5e625886 (diff)
[core] crash fix. In some cases anim::Task write into deleted memory
Diffstat (limited to 'map/bookmark.hpp')
-rw-r--r--map/bookmark.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/map/bookmark.hpp b/map/bookmark.hpp
index 0c9cc51b52..4a3ada3bf9 100644
--- a/map/bookmark.hpp
+++ b/map/bookmark.hpp
@@ -188,9 +188,14 @@ protected:
virtual string GetTypeName() const { return "search-result"; }
virtual string GetActiveTypeName() const { return "search-result-active"; }
virtual UserMark * AllocateUserMark(m2::PointD const & ptOrg);
+
+private:
+ void ReleaseAnimations();
private:
bool m_blockAnimation;
+ typedef pair<UserMark *, shared_ptr<anim::Task> > anim_node_t;
+ vector<anim_node_t> m_anims;
};
/// <category index, bookmark index>