Skip to content

Commit ac78a19

Browse files
authored
Merge pull request #9322 from m-kuhn/fix-double-delete
[geometry validation] Fix double delete and memory leak
2 parents 34684d4 + d1a7e45 commit ac78a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsgeometryvalidationdock.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ void QgsGeometryValidationDock::showHighlight( const QModelIndex &current )
335335

336336
QPropertyAnimation *errorAnimation = new QPropertyAnimation( mErrorRubberband, "fillColor" );
337337
errorAnimation->setEasingCurve( QEasingCurve::OutQuad );
338-
connect( errorAnimation, &QPropertyAnimation::finished, featureAnimation, &QPropertyAnimation::deleteLater );
338+
connect( errorAnimation, &QPropertyAnimation::finished, errorAnimation, &QPropertyAnimation::deleteLater );
339339
connect( errorAnimation, &QPropertyAnimation::valueChanged, this, [this]
340340
{
341341
mErrorRubberband->update();

0 commit comments

Comments
 (0)