fix: Use after free when deleting data processor nodes with errors
This commit is contained in:
parent
a1e399aa1a
commit
cb6b74b269
@ -497,6 +497,12 @@ namespace hex::plugin::builtin {
|
||||
return node->getId() == id;
|
||||
});
|
||||
|
||||
if (workspace.currNodeError.has_value()) {
|
||||
if (workspace.currNodeError->node == node->get()) {
|
||||
workspace.currNodeError.reset();
|
||||
}
|
||||
}
|
||||
|
||||
// Remove the node from the workspace
|
||||
workspace.nodes.erase(node);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user