Skip to content

Commit

Permalink
fix: Use after free when deleting data processor nodes with errors
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Dec 9, 2024
1 parent a1e399a commit cb6b74b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/builtin/source/content/views/view_data_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cb6b74b

Please sign in to comment.