mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix some use-after-free issues in processing test
This commit is contained in:
parent
11946b9c5f
commit
26f1a3395b
@ -2351,6 +2351,7 @@ void TestQgsProcessing::createFeatureSink()
|
||||
QCOMPARE( layer->featureCount(), 0L );
|
||||
QVERIFY( sink->addFeature( f ) );
|
||||
QCOMPARE( layer->featureCount(), 1L );
|
||||
sink.reset();
|
||||
context.temporaryLayerStore()->removeAllMapLayers();
|
||||
layer = nullptr;
|
||||
|
||||
@ -2368,6 +2369,7 @@ void TestQgsProcessing::createFeatureSink()
|
||||
QCOMPARE( layer->featureCount(), 0L );
|
||||
QVERIFY( sink->addFeature( f ) );
|
||||
QCOMPARE( layer->featureCount(), 1L );
|
||||
sink.reset();
|
||||
context.temporaryLayerStore()->removeAllMapLayers();
|
||||
layer = nullptr;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user