mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
nodes: Properly reset data overlays when errors occurred
This commit is contained in:
@@ -125,6 +125,11 @@ namespace hex {
|
||||
}
|
||||
} catch (dp::Node::NodeError &e) {
|
||||
this->m_currNodeError = e;
|
||||
|
||||
for (auto overlay : this->m_dataOverlays)
|
||||
SharedData::currentProvider->deleteOverlay(overlay);
|
||||
this->m_dataOverlays.clear();
|
||||
|
||||
} catch (std::runtime_error &e) {
|
||||
printf("Node implementation bug! %s\n", e.what());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user