MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / ExampleTree_DestroyNode

Function ExampleTree_DestroyNode

imgui_tiny_app/imgui/imgui_demo.cpp:854–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

852}
853
854static void ExampleTree_DestroyNode(ExampleTreeNode* node)
855{
856 for (ExampleTreeNode* child_node : node->Childs)
857 ExampleTree_DestroyNode(child_node);
858 IM_DELETE(node);
859}
860
861// Create example tree data
862// (warning: this can allocates MANY MANY more times than other code in all of Dear ImGui + demo combined)

Callers 1

~ImGuiDemoWindowDataMethod · 0.85

Calls 1

IM_DELETEFunction · 0.85

Tested by

no test coverage detected