Skip to content
Permalink
Browse files

fix segfault when closing qgis with error rubberbands present in canvas

  • Loading branch information
vinayan committed Apr 13, 2013
1 parent 14c0bb7 commit 8ef9e6d4a4a92d63b01ff86cb40fffdc1e91e180
Showing with 1 addition and 10 deletions.
  1. +1 −10 src/plugins/topology/checkDock.cpp
@@ -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;

0 comments on commit 8ef9e6d

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