diff options
author | Paolo Angelelli <paolo.angelelli.qt@gmail.com> | 2019-12-26 21:27:48 +0100 |
---|---|---|
committer | paolo <paolo.angelelli.qt@gmail.com> | 2020-01-14 20:40:26 +0100 |
commit | b359faca3420916efd649b743501df3fdf5b6f35 (patch) | |
tree | b49f6cadf5a45c61f0d7798ee777ceb19ada5cf2 /src/location/labs/qmappolygonobject.cpp | |
parent | 912f7c727a4362c9530804d9bf1fd92062734af1 (diff) | |
download | qtlocation-b359faca3420916efd649b743501df3fdf5b6f35.tar.gz |
Fix MapObjects ::border property not properly initialized
This patch also parents it with the object also fixing memory leaks.
Change-Id: I74a21176b1d2450b10a21f92321520ca2c6e88e0
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/labs/qmappolygonobject.cpp')
-rw-r--r-- | src/location/labs/qmappolygonobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/labs/qmappolygonobject.cpp b/src/location/labs/qmappolygonobject.cpp index 6ccba748..5a8ce228 100644 --- a/src/location/labs/qmappolygonobject.cpp +++ b/src/location/labs/qmappolygonobject.cpp @@ -250,7 +250,7 @@ QColor QMapPolygonObject::color() const QDeclarativeMapLineProperties *QMapPolygonObject::border() { if (!m_border) { - m_border = new QDeclarativeMapLineProperties; + m_border = new QDeclarativeMapLineProperties(this); connect(m_border, &QDeclarativeMapLineProperties::colorChanged, this, [this](const QColor &color){ static_cast<QMapPolygonObjectPrivate*>(d_ptr.data())->setBorderColor(color); }); |