Skip to content
Permalink
Browse files

Fix use after delete error (thanks to Coverity)

  • Loading branch information
nyalldawson committed Jul 17, 2017
1 parent 4e5597a commit b24370dca334c65423e2aa3276a5b1ebe41a5408
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/core/testqgsprocessing.cpp
@@ -665,7 +665,7 @@ void TestQgsProcessing::context()
QString id = v1->id();
delete v1;
QVERIFY( !context2.temporaryLayerStore()->mapLayer( id ) );
QVERIFY( !context2.takeResultLayer( v1->id() ) );
QVERIFY( !context2.takeResultLayer( id ) );
result = context2.takeResultLayer( v2->id() );
QCOMPARE( result, v2 );
id = v2->id();

0 comments on commit b24370d

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