Skip to content

Commit

Permalink
fix segfault when closing qgis with error rubberbands present in canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayan committed Apr 13, 2013
1 parent 14c0bb7 commit 8ef9e6d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/plugins/topology/checkDock.cpp
Expand Up @@ -103,17 +103,8 @@ checkDock::checkDock( QgisInterface* qIface, QWidget* parent )
checkDock::~checkDock()
{
delete mConfigureDialog;

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

mRbErrorMarkers.clear();
clearVertexMarkers();

// delete errors in list
deleteErrors();
delete mErrorListModel;
Expand Down

0 comments on commit 8ef9e6d

Please sign in to comment.