diff --git a/src/app/qgsgeometryvalidationdock.cpp b/src/app/qgsgeometryvalidationdock.cpp index 1bfea2cf16e..33de206ec8a 100644 --- a/src/app/qgsgeometryvalidationdock.cpp +++ b/src/app/qgsgeometryvalidationdock.cpp @@ -335,7 +335,7 @@ void QgsGeometryValidationDock::showHighlight( const QModelIndex ¤t ) QPropertyAnimation *errorAnimation = new QPropertyAnimation( mErrorRubberband, "fillColor" ); errorAnimation->setEasingCurve( QEasingCurve::OutQuad ); - connect( errorAnimation, &QPropertyAnimation::finished, featureAnimation, &QPropertyAnimation::deleteLater ); + connect( errorAnimation, &QPropertyAnimation::finished, errorAnimation, &QPropertyAnimation::deleteLater ); connect( errorAnimation, &QPropertyAnimation::valueChanged, this, [this] { mErrorRubberband->update();