diff options
author | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-08 10:10:53 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-08 10:10:53 (GMT) |
commit | b78ec7dcd8b13a76703baefff1731d3f345392cc (patch) | |
tree | 7fca17717a86567d68c86562432838f8e15da377 /tests | |
parent | 465d2c6356bdfd70bd28c6ec53191e73682b06c1 (diff) | |
download | Qt-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.cpp | 1 |
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() |