Skip to content

Commit

Permalink
Fix use after delete error (thanks to Coverity)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 17, 2017
1 parent 4e5597a commit b24370d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/core/testqgsprocessing.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit b24370d

Please sign in to comment.