Skip to content
Permalink
Browse files

Fix leaks in tests

  • Loading branch information
nyalldawson committed Aug 28, 2015
1 parent 95816f5 commit ebf3baccc29e625bd805c08ce74ab23bef0a8595
Showing with 3 additions and 2 deletions.
  1. +1 −0 tests/src/core/testqgscomposermultiframe.cpp
  2. +2 −2 tests/src/core/testqgscomposertablev2.cpp
@@ -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 );

0 comments on commit ebf3bac

Please sign in to comment.
You can’t perform that action at this time.