You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if you aren't careful, it's really easy to leak memory with FlowScene. ~FlowScene() isn't called by default. You have to write scene->setParent(parentWidget), otherwise it's not automatically deleted.
A possible fix would be to modify the constructor of FlowScene to something like this:
Currently, if you aren't careful, it's really easy to leak memory with
FlowScene.~FlowScene()isn't called by default. You have to writescene->setParent(parentWidget), otherwise it's not automatically deleted.A possible fix would be to modify the constructor of
FlowSceneto something like this:FlowScene(std::shared_ptr<DataModelRegistry> registry = std::make_shared<DataModelRegistry>(), QWidget* parent = nullptr);