summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2010-11-08 10:10:53 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2010-11-08 10:10:53 (GMT)
commitb78ec7dcd8b13a76703baefff1731d3f345392cc (patch)
tree7fca17717a86567d68c86562432838f8e15da377 /tests
parent465d2c6356bdfd70bd28c6ec53191e73682b06c1 (diff)
downloadQt-b78ec7dcd8b13a76703baefff1731d3f345392cc.zip
Qt-b78ec7dcd8b13a76703baefff1731d3f345392cc.tar.gz
Qt-b78ec7dcd8b13a76703baefff1731d3f345392cc.tar.bz2
fix memleak in test
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qtextdocument/tst_qtextdocument.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qtextdocument/tst_qtextdocument.cpp b/tests/auto/qtextdocument/tst_qtextdocument.cpp
index 808299b..23f6a6c 100644
--- a/tests/auto/qtextdocument/tst_qtextdocument.cpp
+++ b/tests/auto/qtextdocument/tst_qtextdocument.cpp
@@ -2054,6 +2054,7 @@ void tst_QTextDocument::clonePreservesIndentWidth()
doc->setIndentWidth(42);
QTextDocument *clone = doc->clone();
QCOMPARE(clone->indentWidth(), qreal(42));
+ delete clone;
}
void tst_QTextDocument::blockCount()