summaryrefslogtreecommitdiffstats
path: root/tests/auto/cpptest/q3dsurface/tst_surface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/cpptest/q3dsurface/tst_surface.cpp')
-rw-r--r--tests/auto/cpptest/q3dsurface/tst_surface.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/auto/cpptest/q3dsurface/tst_surface.cpp b/tests/auto/cpptest/q3dsurface/tst_surface.cpp
index 0ae0a326..a71af1ee 100644
--- a/tests/auto/cpptest/q3dsurface/tst_surface.cpp
+++ b/tests/auto/cpptest/q3dsurface/tst_surface.cpp
@@ -86,7 +86,8 @@ void tst_surface::construct()
QVERIFY(graph);
delete graph;
- graph = new Q3DSurface(new QSurfaceFormat());
+ QSurfaceFormat format;
+ graph = new Q3DSurface(&format);
QVERIFY(graph);
delete graph;
}
@@ -217,6 +218,8 @@ void tst_surface::removeSeries()
m_graph->addSeries(series);
m_graph->removeSeries(series);
QCOMPARE(m_graph->seriesList().length(), 0);
+
+ delete series;
}
void tst_surface::removeMultipleSeries()
@@ -241,6 +244,10 @@ void tst_surface::removeMultipleSeries()
m_graph->removeSeries(series3);
QCOMPARE(m_graph->seriesList().length(), 0);
+
+ delete series;
+ delete series2;
+ delete series3;
}
QTEST_MAIN(tst_surface)