rokups / ImNodes

Node graph implementation for Dear ImGui. Used in https://github.com/rokups/rbfx
MIT License
656 stars 57 forks source link

Sample leaks memory? #28

Closed codecnotsupported closed 3 years ago

codecnotsupported commented 3 years ago

https://github.com/rokups/ImNodes/blob/b2274c0293fa2de5486a4b26c38df65f283eef31/sample.cpp#L98 You might want to use smart pointers cause of cases like this.

rokups commented 3 years ago

No leak here. Connections vector stores struct values instead of struct pointers, therefore vector is in charge of managing memory here.