summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorAleksandar Sasha Babic <aleksandar.babic@nokia.com>2010-05-03 10:38:28 (GMT)
committerAleksandar Sasha Babic <aleksandar.babic@nokia.com>2010-05-03 10:43:01 (GMT)
commitb3ff31825d9c3e9d139565024d424eb03299b5f5 (patch)
tree1df35742e9bce6818a2dd54d63b453331c58b7fa /src/testlib
parentfef0ec67bf1b49221b3f383f6ea1c9a65fc08c57 (diff)
downloadQt-b3ff31825d9c3e9d139565024d424eb03299b5f5.zip
Qt-b3ff31825d9c3e9d139565024d424eb03299b5f5.tar.gz
Qt-b3ff31825d9c3e9d139565024d424eb03299b5f5.tar.bz2
Fixing small memory leak in testlib.
Reviewed-by: Jason Barron
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/qplaintestlogger.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testlib/qplaintestlogger.cpp b/src/testlib/qplaintestlogger.cpp
index 0888cfc..d516f62 100644
--- a/src/testlib/qplaintestlogger.cpp
+++ b/src/testlib/qplaintestlogger.cpp
@@ -181,6 +181,7 @@ namespace QTest {
hbuffer->Des().Copy(ptr.Mid(i, size));
RDebug::Print(format, hbuffer);
}
+ delete hbuffer;
}
else {
// fast, no allocations, but truncates silently