Fix Segfault on Quit after Debug/Emulation (#1943)

This commit is contained in:
Florian Märkl 2019-12-18 14:56:57 +01:00 committed by GitHub
parent fd98694c9a
commit 8f480d9c2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -348,7 +348,7 @@ bool CutterCore::asyncCmdEsil(const char *command, QSharedPointer<R2Task> &task)
return false; return false;
} }
connect(task.data(), &R2Task::finished, this, [this, task] () { connect(task.data(), &R2Task::finished, task.data(), [this, task] () {
QString res = task.data()->getResult(); QString res = task.data()->getResult();
if (res.contains(QStringLiteral("[ESIL] Stopped execution in an invalid instruction"))) { if (res.contains(QStringLiteral("[ESIL] Stopped execution in an invalid instruction"))) {
@ -370,7 +370,7 @@ bool CutterCore::asyncCmd(const char *str, QSharedPointer<R2Task> &task)
RVA offset = core->offset; RVA offset = core->offset;
task = QSharedPointer<R2Task>(new R2Task(str, true)); task = QSharedPointer<R2Task>(new R2Task(str, true));
connect(task.data(), &R2Task::finished, this, [this, offset, task] () { connect(task.data(), &R2Task::finished, task.data(), [this, offset, task] () {
CORE_LOCK(); CORE_LOCK();
if (offset != core->offset) { if (offset != core->offset) {