diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-04-27 20:34:44 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-11-30 16:04:18 +0300 |
commit | 100b6631b9f268b8e2b8a7f292588285e26ca370 (patch) | |
tree | 39585e396e2985fd14756c9c9ed14bb925a34698 /drape_frontend/read_manager.cpp | |
parent | 3b030fcf019b3facfa0cbe03b3f9185d3103362a (diff) |
Fixed crash in EngineContext caused by thread-safety
Diffstat (limited to 'drape_frontend/read_manager.cpp')
-rwxr-xr-x | drape_frontend/read_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drape_frontend/read_manager.cpp b/drape_frontend/read_manager.cpp index 2024afc555..4f602d8346 100755 --- a/drape_frontend/read_manager.cpp +++ b/drape_frontend/read_manager.cpp @@ -145,7 +145,7 @@ bool ReadManager::MustDropAllTiles(ScreenBase const & screen) const void ReadManager::PushTaskBackForTileKey(TileKey const & tileKey) { - shared_ptr<TileInfo> tileInfo(new TileInfo(EngineContext(tileKey, m_commutator))); + shared_ptr<TileInfo> tileInfo(new TileInfo(make_unique_dp<EngineContext>(tileKey, m_commutator))); m_tileInfos.insert(tileInfo); ReadMWMTask * task = myPool.Get(); task->Init(tileInfo); |