From 606bcd35143d09cca5b1ec45bdb5b13236e4376b Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 3 Oct 2019 14:50:49 +1000 Subject: [PATCH] Fix crash in topology checker plugin after a check is canceled during index preparation --- src/plugins/topology/topolTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/topology/topolTest.cpp b/src/plugins/topology/topolTest.cpp index 3775846e3926..4b0fc6dda921 100644 --- a/src/plugins/topology/topolTest.cpp +++ b/src/plugins/topology/topolTest.cpp @@ -1363,8 +1363,7 @@ QgsSpatialIndex *topolTest::createIndex( QgsVectorLayer *layer, const QgsRectang if ( testCanceled() ) { - delete index; - return nullptr; + return index; } if ( f.hasGeometry() )