Skip to content

Commit

Permalink
Fix some use-after-free issues in task manager test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 13, 2020
1 parent ede9e98 commit 3833928
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/src/core/testqgstaskmanager.cpp
Expand Up @@ -1061,7 +1061,6 @@ void TestQgsTaskManager::progressChanged()
}
flushEvents();
QCOMPARE( spy.count(), 6 );
QCOMPARE( task2->progress(), 100.0 );
QCOMPARE( spy.last().at( 0 ).toLongLong(), 2LL );
QCOMPARE( spy.last().at( 1 ).toDouble(), 100.0 );

Expand Down Expand Up @@ -1485,11 +1484,7 @@ void TestQgsTaskManager::managerWithSubTasks()
QCOMPARE( statusSpy.last().at( 0 ).toLongLong(), 1LL );
QCOMPARE( static_cast< QgsTask::TaskStatus >( statusSpy.last().at( 1 ).toInt() ), QgsTask::Complete );

subsubTask->finish();
subTask->finish();
parent->finish();
delete manager;

}

void TestQgsTaskManager::managerWithSubTasks2()
Expand Down

0 comments on commit 3833928

Please sign in to comment.