Commit fcbe97bd authored by Albert Astals Cid's avatar Albert Astals Cid Committed by Albert Astals Cid

Fix leaks in documenttest

parent 30297bc4
...@@ -61,6 +61,8 @@ void DocumentTest::testCloseDuringRotationJob() ...@@ -61,6 +61,8 @@ void DocumentTest::testCloseDuringRotationJob()
ThreadWeaver::Queue::instance()->resume(); ThreadWeaver::Queue::instance()->resume();
ThreadWeaver::Queue::instance()->finish(); ThreadWeaver::Queue::instance()->finish();
qApp->processEvents(); qApp->processEvents();
delete dummyDocumentObserver;
} }
// Test that, if there's a XML file in docdata referring to a document, we // Test that, if there's a XML file in docdata referring to a document, we
...@@ -110,6 +112,8 @@ void DocumentTest::testDocdataMigration() ...@@ -110,6 +112,8 @@ void DocumentTest::testDocdataMigration()
QCOMPARE( m_document->page( 0 )->annotations().size(), 0 ); QCOMPARE( m_document->page( 0 )->annotations().size(), 0 );
QCOMPARE( m_document->isDocdataMigrationNeeded(), false ); QCOMPARE( m_document->isDocdataMigrationNeeded(), false );
m_document->closeDocument(); m_document->closeDocument();
delete m_document;
} }
QTEST_MAIN( DocumentTest ) QTEST_MAIN( DocumentTest )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment