summaryrefslogtreecommitdiffstats
path: root/installerbuilder/common/utils.cpp
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2011-05-04 13:31:58 +0200
committerkh1 <qt-info@nokia.com>2011-05-04 13:31:58 +0200
commitb18fbf4a10ab1d6c935cccefc36c54847d1f2766 (patch)
tree2b07139541d6731be2a164b48a2414ae9bf6369c /installerbuilder/common/utils.cpp
parent27285b492b4955b9282ac9a84ac658a52232dcfd (diff)
Resolve TODO. Fix memory leak.
Diffstat (limited to 'installerbuilder/common/utils.cpp')
-rw-r--r--installerbuilder/common/utils.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/installerbuilder/common/utils.cpp b/installerbuilder/common/utils.cpp
index e4460bd4c..32256d042 100644
--- a/installerbuilder/common/utils.cpp
+++ b/installerbuilder/common/utils.cpp
@@ -93,15 +93,13 @@ std::ostream& QInstaller::stdverbose()
{
static std::fstream null;
#ifdef Q_WS_WIN
- // TODO: this one get leaked
- static debugstream& stream = *(new debugstream);
+ static debugstream stream;
#else
static std::ostream& stream = std::cout;
#endif
- if( verb )
+ if (verb)
return stream;
- else
- return null;
+ return null;
}
std::ostream& QInstaller::operator<<( std::ostream& os, const QUrl& url )