diff options
author | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2010-05-03 10:38:28 (GMT) |
---|---|---|
committer | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2010-05-03 10:43:01 (GMT) |
commit | b3ff31825d9c3e9d139565024d424eb03299b5f5 (patch) | |
tree | 1df35742e9bce6818a2dd54d63b453331c58b7fa /src | |
parent | fef0ec67bf1b49221b3f383f6ea1c9a65fc08c57 (diff) | |
download | Qt-b3ff31825d9c3e9d139565024d424eb03299b5f5.zip Qt-b3ff31825d9c3e9d139565024d424eb03299b5f5.tar.gz Qt-b3ff31825d9c3e9d139565024d424eb03299b5f5.tar.bz2 |
Fixing small memory leak in testlib.
Reviewed-by: Jason Barron
Diffstat (limited to 'src')
-rw-r--r-- | src/testlib/qplaintestlogger.cpp | 1 |
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 |