summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2017-07-18 16:26:51 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-07-18 16:27:41 +0300
commit084657f43ec304b4ec6d3cb7bbc7ddb2320e688e (patch)
tree04f0deb2c1d6f5ac5ae234b06d8bb129eb0cc6fd
parent13db36f02c9e0a95b4d4a9feab241f3470f2d197 (diff)
downloadqtlocation-mapboxgl-upstream/tmpsantos-fix_crash.tar.gz
[Qt] Destroy the map object before the renderer frontendupstream/tmpsantos-fix_crash
The Map object will call the renderer frontend on its destructor. Fixes #9535.
-rw-r--r--platform/qt/src/qmapboxgl_p.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/qt/src/qmapboxgl_p.hpp b/platform/qt/src/qmapboxgl_p.hpp
index 3afd299067..e7eb1c2c2b 100644
--- a/platform/qt/src/qmapboxgl_p.hpp
+++ b/platform/qt/src/qmapboxgl_p.hpp
@@ -58,8 +58,8 @@ public:
std::shared_ptr<mbgl::DefaultFileSource> fileSourceObj;
std::shared_ptr<mbgl::ThreadPool> threadPool;
- std::unique_ptr<mbgl::Map> mapObj;
std::unique_ptr<QMapboxGLRendererFrontend> frontend;
+ std::unique_ptr<mbgl::Map> mapObj;
bool dirty { false };