mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
Fix Segfault on Quit after Debug/Emulation (#1943)
This commit is contained in:
parent
fd98694c9a
commit
8f480d9c2c
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user