diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-04-08 00:02:42 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-04-11 15:38:54 +0000 |
commit | 48c17c80b9bb003ff92150d6ca8a54109b987715 (patch) | |
tree | dc2c15614d71c1c5f4a09bf088760df425b40b81 /src/location/maps/qgeomaneuver.cpp | |
parent | de46e34ca67eba6191768338bb87781e65e6a1a1 (diff) | |
download | qtlocation-48c17c80b9bb003ff92150d6ca8a54109b987715.tar.gz |
Protect QGeoMap pointer with QPointer
m_map inside QDeclarativeGeoMap is created, but also destroyed, by the
engine.
In some cases (dynamic QML object creation/destruction) the engine may
disappear before the Map.
This patch introduces a QPointer to prevent a dangling pointer
Change-Id: Ice3c57b4dbeb96ee8d7e4d401654b9085c105dec
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/maps/qgeomaneuver.cpp')
0 files changed, 0 insertions, 0 deletions