summaryrefslogtreecommitdiffstats
path: root/installerbuilder/libinstaller/elevatedexecuteoperation.cpp
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2011-07-12 14:13:57 +0200
committerkh1 <qt-info@nokia.com>2011-07-12 14:13:57 +0200
commitd262ecbdffbe727cbc4d6b96c3216e2b9bcbdd39 (patch)
tree4f7469dc04fce601621995c6e5f608e308ab09c8 /installerbuilder/libinstaller/elevatedexecuteoperation.cpp
parent915d1ef4bb6939087caf4186581f74d9aa2fe29d (diff)
Fix memory leak. Set parenthesis properly.
Diffstat (limited to 'installerbuilder/libinstaller/elevatedexecuteoperation.cpp')
-rw-r--r--installerbuilder/libinstaller/elevatedexecuteoperation.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/installerbuilder/libinstaller/elevatedexecuteoperation.cpp b/installerbuilder/libinstaller/elevatedexecuteoperation.cpp
index 73eb1f661..68d667346 100644
--- a/installerbuilder/libinstaller/elevatedexecuteoperation.cpp
+++ b/installerbuilder/libinstaller/elevatedexecuteoperation.cpp
@@ -170,9 +170,10 @@ bool ElevatedExecuteOperation::Private::run(const QStringList& arguments)
QInstaller::verbose() << " ElevatedExecuteOperation setNativeArguments to start: " << args.front()
<< std::endl;
process->start(QString(), QStringList());
- } else
+ } else {
#endif
- process->start(args.front(), args.mid(1));
+ process->start(args.front(), args.mid(1));
+ }
QInstaller::verbose() << args.front() << " started, arguments: " << QStringList(args.mid(1))
.join(QLatin1String(" ")) << std::endl;