mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Fixed most of the memory leaks and started working on correctly exiting the thread
This commit is contained in:
parent
af883991e2
commit
aa07a33906
29 changed files with 246 additions and 137 deletions
|
@ -8,10 +8,17 @@
|
|||
#include <QDir>
|
||||
#include <QDebug>
|
||||
|
||||
Process::ProcessInvoker::ProcessInvoker(QWidget *parent)
|
||||
Process::ProcessInvoker::ProcessInvoker()
|
||||
{
|
||||
mProcess = new QProcess(this);
|
||||
|
||||
connect(mProcess, SIGNAL(error(QProcess::ProcessError)),
|
||||
this, SLOT(processError(QProcess::ProcessError)));
|
||||
|
||||
connect(mProcess, SIGNAL(finished(int,QProcess::ExitStatus)),
|
||||
this, SLOT(processFinished(int,QProcess::ExitStatus)));
|
||||
|
||||
|
||||
mName = QString();
|
||||
mArguments = QStringList();
|
||||
}
|
||||
|
@ -48,13 +55,6 @@ QProcess* Process::ProcessInvoker::getProcess()
|
|||
bool Process::ProcessInvoker::startProcess(const QString &name, const QStringList &arguments, bool detached)
|
||||
{
|
||||
// mProcess = new QProcess(this);
|
||||
|
||||
connect(mProcess, SIGNAL(error(QProcess::ProcessError)),
|
||||
this, SLOT(processError(QProcess::ProcessError)));
|
||||
|
||||
connect(mProcess, SIGNAL(finished(int,QProcess::ExitStatus)),
|
||||
this, SLOT(processFinished(int,QProcess::ExitStatus)));
|
||||
|
||||
mName = name;
|
||||
mArguments = arguments;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue