diff options
author | Reimar Döffinger <brouwer@annejan.com> | 2015-03-30 00:39:47 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2015-03-30 00:39:47 +0200 |
commit | 08a2bde094ab6a668ee31d1e278db1a86517f6b5 (patch) | |
tree | 34d08114bbb092c95bab7754c1aeb54b87e16d99 /util.cpp | |
parent | 5ea8d132edfeca9f7fb4da97e192144a46b916a1 (diff) |
Use QScopedPointer to reduce memleaks.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'util.cpp')
-rw-r--r-- | util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -46,7 +46,7 @@ QString Util::findBinaryInPath(QString binary) } foreach(QString entry, entries) { - QFileInfo *qfi = new QFileInfo(entry.append(binary)); + QScopedPointer<QFileInfo> qfi(new QFileInfo(entry.append(binary))); qDebug() << entry; #ifdef WINDOWS |