1
0
mirror of synced 2025-01-11 05:42:15 +01:00

fix: Use after free when deleting data processor nodes with errors

This commit is contained in:
WerWolv 2024-12-09 14:40:07 +01:00
parent a1e399aa1a
commit cb6b74b269

View File

@ -497,6 +497,12 @@ namespace hex::plugin::builtin {
return node->getId() == id; return node->getId() == id;
}); });
if (workspace.currNodeError.has_value()) {
if (workspace.currNodeError->node == node->get()) {
workspace.currNodeError.reset();
}
}
// Remove the node from the workspace // Remove the node from the workspace
workspace.nodes.erase(node); workspace.nodes.erase(node);
} }