Commit 07730341 authored by dt's avatar dt
Browse files

Fix memory leak in $$system() calls from .pro files

Reviewed-By: ossi
parent c13d7116
......@@ -56,8 +56,10 @@
#ifdef Q_OS_WIN32
#define QT_POPEN _popen
#define QT_PCLOSE _pclose
#else
#define QT_POPEN popen
#define QT_PCLOSE pclose
#endif
QT_BEGIN_NAMESPACE
......@@ -1626,6 +1628,8 @@ QStringList ProFileEvaluator::Private::evaluateExpandFunction(const QString &fun
output += QLatin1String(buff);
}
ret += split_value_list(output);
if (proc)
QT_PCLOSE(proc);
}
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment