diff options
author | BogDan Vatra <bogdan@kdab.com> | 2017-07-25 09:02:56 +0300 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-07-28 14:09:43 +0000 |
commit | c467f608ec92d4a2023140a1f212e4b46b892bb8 (patch) | |
tree | 190c6d1b17215859f93a8528ba368ffa81984438 /src/location/declarativemaps/qdeclarativegeomap_p.h | |
parent | 763d5977e7758adb232e1ecd091f926e6f54e75a (diff) | |
download | qtlocation-c467f608ec92d4a2023140a1f212e4b46b892bb8.tar.gz |
Fix memleak: delete QGeoMap when QDeclarativeGeoMap gets deleted
Task-number: QTBUG-62122
Change-Id: I538e1eeb6bce3f5de424003b0b31fa59599dc2d5
Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomap_p.h')
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeomap_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomap_p.h b/src/location/declarativemaps/qdeclarativegeomap_p.h index f07a2e7f..e8ff3265 100644 --- a/src/location/declarativemaps/qdeclarativegeomap_p.h +++ b/src/location/declarativemaps/qdeclarativegeomap_p.h @@ -252,7 +252,7 @@ private: QList<QDeclarativeGeoMapType *> m_supportedMapTypes; QList<QDeclarativeGeoMapItemView *> m_mapViews; QQuickGeoMapGestureArea *m_gestureArea; - QPointer<QGeoMap> m_map; + QGeoMap* m_map = nullptr; QPointer<QDeclarativeGeoMapCopyrightNotice> m_copyrights; QList<QPointer<QDeclarativeGeoMapItemBase> > m_mapItems; QList<QPointer<QDeclarativeGeoMapItemGroup> > m_mapItemGroups; |