This will result in a leak in the tracing::value content, but this is
unavoidable as long as the constructor is not really initializing the
fields but instead initializing the ret field.
xbt_dict_cursor_t cursor = nullptr;
xbt_dict_foreach (type->values, cursor, value_name, val) {
XBT_DEBUG("free value %s, child of %s", val->name, val->father->name);
- delete val;
+ xbt_free(val);
}
xbt_dict_free (&type->values);
xbt_free (type->name);
value::~value()
{
+ /* FIXME: this should be cleanable
xbt_free(name);
xbt_free(color);
xbt_free(id);
+ */
}
value* value::get_or_new(const char* name, const char* color, type_t father)