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