Merge pull request #9322 from m-kuhn/fix-double-delete

[geometry validation] Fix double delete and memory leak
This commit is contained in:
Matthias Kuhn 2019-03-02 09:46:55 +01:00 committed by GitHub
commit ac78a194df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -335,7 +335,7 @@ void QgsGeometryValidationDock::showHighlight( const QModelIndex &current )
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();