Skip to content
Snippets Groups Projects

Fix/robot state memory memory leak

Merged Christoph Pohl requested to merge fix/robot-state-memory-memory-leak into master
1 file
+ 15
1
Compare changes
  • Side-by-side
  • Inline
@@ -85,7 +85,21 @@ namespace armarx
void
AronTreeWidgetConverterVisitor::visitAronVariant(const aron::type::ListPtr& i)
{
// TODO
auto createdAronList = std::make_shared<aron::data::List>(i->getPath());
createdAron = createdAronList;
QTreeWidgetItem* el = parentItem->child(index);
for (int x = 0; x < el->childCount(); ++x)
{
auto it = el->child(x);
AronTreeWidgetConverterVisitor v(el, x);
aron::type::visit(v, i->getAcceptedType());
if (v.createdAron)
{
createdAronList->addElement(v.createdAron);
}
}
}
void
Loading