Commit 144b2060 authored by Paolo Angelelli's avatar Paolo Angelelli
Browse files

Change QDeclarativeGeoMapItemBase::map_ into a QPointer


Or else it may cause crashes on shutdown due to map_ not being parented
with QDeclarativeGeoMap and potentially being deleted earlier.

Change-Id: I2bed1c884eb556e48261371e889aae5e190476bc
Reviewed-by: default avatarAlex Blasche <alexander.blasche@qt.io>
Showing with 1 addition and 1 deletion
...@@ -116,7 +116,7 @@ private Q_SLOTS: ...@@ -116,7 +116,7 @@ private Q_SLOTS:
void baseCameraDataChanged(const QGeoCameraData &camera); void baseCameraDataChanged(const QGeoCameraData &camera);
private: private:
QGeoMap *map_; QPointer<QGeoMap> map_;
QDeclarativeGeoMap *quickMap_; QDeclarativeGeoMap *quickMap_;
QSizeF lastSize_; QSizeF lastSize_;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment