mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
fix segfault when closing qgis with error rubberbands present in canvas
This commit is contained in:
parent
14c0bb7634
commit
8ef9e6d4a4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user