Skip to content

Commit

Permalink
Fix leaks in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 28, 2015
1 parent 95816f5 commit ebf3bac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/src/core/testqgscomposermultiframe.cpp
Expand Up @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions tests/src/core/testqgscomposertablev2.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit ebf3bac

Please sign in to comment.