Skip to content
Permalink
Browse files

Topology checker: No double-delete of rubberbands (Fix #8095)

  • Loading branch information
m-kuhn committed Jul 2, 2013
1 parent 5020441 commit ce1a9a821db2c494cfbd6ed12a658a47d4c587e3
Showing with 3 additions and 16 deletions.
  1. +3 −16 src/plugins/topology/checkDock.cpp
@@ -150,14 +150,8 @@ void checkDock::deleteErrors()
mErrorList.clear();
mErrorListModel->resetModel();

QList<QgsRubberBand*>::const_iterator rit;

for ( rit = mRbErrorMarkers.begin(); rit != mRbErrorMarkers.end(); ++rit )
{
QgsRubberBand* rb = *rit;
rb->reset();
delete rb;
}
qDeleteAll( mRbErrorMarkers );
mRbErrorMarkers.clear();
}

void checkDock::parseErrorListByLayer( QString layerId )
@@ -397,14 +391,7 @@ void checkDock::validate( ValidateType type )
{
mErrorList.clear();

QList<QgsRubberBand*>::const_iterator it;
for ( it = mRbErrorMarkers.begin(); it != mRbErrorMarkers.end(); ++it )
{
QgsRubberBand* rb = *it;
rb->reset();
delete rb;
}

qDeleteAll( mRbErrorMarkers );
mRbErrorMarkers.clear();

runTests( type );

0 comments on commit ce1a9a8

Please sign in to comment.
You can’t perform that action at this time.