Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #9322 from m-kuhn/fix-double-delete
Browse files Browse the repository at this point in the history
[geometry validation] Fix double delete and memory leak
  • Loading branch information
m-kuhn committed Mar 2, 2019
2 parents 34684d4 + d1a7e45 commit ac78a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsgeometryvalidationdock.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit ac78a19

Please sign in to comment.