fix: ImNodes not being deinitialized correctly

This commit is contained in:
WerWolv
2025-01-14 17:50:29 +01:00
parent 185a593bc2
commit ecc86ee429
3 changed files with 7 additions and 1 deletions

View File

@@ -25,7 +25,10 @@ namespace hex::plugin::builtin {
ctx->AttributeFlagStack = GImNodes->AttributeFlagStack;
return ctx;
}(), ImNodes::DestroyContext };
}(), [](ImNodesContext *ptr) {
if (ptr != nullptr)
ImNodes::DestroyContext(ptr);
} };
std::list<std::unique_ptr<dp::Node>> nodes;
std::list<dp::Node*> endNodes;