mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-08 00:06:51 -05:00
Merge pull request #9322 from m-kuhn/fix-double-delete
[geometry validation] Fix double delete and memory leak
This commit is contained in:
commit
ac78a194df
@ -335,7 +335,7 @@ void QgsGeometryValidationDock::showHighlight( const QModelIndex ¤t )
|
|||||||
|
|
||||||
QPropertyAnimation *errorAnimation = new QPropertyAnimation( mErrorRubberband, "fillColor" );
|
QPropertyAnimation *errorAnimation = new QPropertyAnimation( mErrorRubberband, "fillColor" );
|
||||||
errorAnimation->setEasingCurve( QEasingCurve::OutQuad );
|
errorAnimation->setEasingCurve( QEasingCurve::OutQuad );
|
||||||
connect( errorAnimation, &QPropertyAnimation::finished, featureAnimation, &QPropertyAnimation::deleteLater );
|
connect( errorAnimation, &QPropertyAnimation::finished, errorAnimation, &QPropertyAnimation::deleteLater );
|
||||||
connect( errorAnimation, &QPropertyAnimation::valueChanged, this, [this]
|
connect( errorAnimation, &QPropertyAnimation::valueChanged, this, [this]
|
||||||
{
|
{
|
||||||
mErrorRubberband->update();
|
mErrorRubberband->update();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user