mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Fix leaks in tests
This commit is contained in:
parent
95816f589f
commit
ebf3baccc2
@ -98,6 +98,7 @@ void TestQgsComposerMultiFrame::addFrame()
|
||||
{
|
||||
QgsComposerHtml* htmlItem = new QgsComposerHtml( mComposition, false );
|
||||
QgsComposerFrame* frame1 = new QgsComposerFrame( mComposition, htmlItem, 0, 0, 100, 200 );
|
||||
htmlItem->addFrame( frame1 );
|
||||
|
||||
//should not be inherited
|
||||
frame1->setHidePageIfEmpty( true );
|
||||
|
@ -619,10 +619,10 @@ void TestQgsComposerTableV2::removeDuplicates()
|
||||
|
||||
//check if removing attributes in unique mode works correctly (should result in duplicate rows,
|
||||
//which will be stripped out)
|
||||
table->columns()->removeLast();
|
||||
delete table->columns()->takeLast();
|
||||
table->refreshAttributes();
|
||||
QCOMPARE( table->contents()->length(), 2 );
|
||||
table->columns()->removeLast();
|
||||
delete table->columns()->takeLast();
|
||||
table->refreshAttributes();
|
||||
QCOMPARE( table->contents()->length(), 1 );
|
||||
table->setUniqueRowsOnly( false );
|
||||
|
Loading…
x
Reference in New Issue
Block a user