diff options
Diffstat (limited to 'src/location/labs/qmappolygonobject.cpp')
-rw-r--r-- | src/location/labs/qmappolygonobject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/location/labs/qmappolygonobject.cpp b/src/location/labs/qmappolygonobject.cpp index adc3259f..1d495899 100644 --- a/src/location/labs/qmappolygonobject.cpp +++ b/src/location/labs/qmappolygonobject.cpp @@ -246,7 +246,8 @@ void QMapPolygonObject::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 QMapPolygonObjectPrivateDefault(*d); // Old pimpl deleted implicitly by QExplicitlySharedDataPointer } |