diff options
Diffstat (limited to 'src/location/labs/qmapiconobject.cpp')
-rw-r--r-- | src/location/labs/qmapiconobject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/location/labs/qmapiconobject.cpp b/src/location/labs/qmapiconobject.cpp index 507492d2..be82ebbf 100644 --- a/src/location/labs/qmapiconobject.cpp +++ b/src/location/labs/qmapiconobject.cpp @@ -236,7 +236,8 @@ void QMapIconObject::setMap(QGeoMap *map) QGeoMapObject::setMap(map); // This is where the specialized pimpl gets created and injected if (!map) { - // Map was set, now it has ben re-set to NULL + // Map was set, now it has ben re-set to NULL, but not inside d_ptr. + // so m_map inside d_ptr can still be used to remove itself, inside the destructor. d_ptr = new QMapIconObjectPrivateDefault(*d); // Old pimpl deleted implicitly by QExplicitlySharedDataPointer } |