Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Libsimgrid-java already depends on libsimgrid. There's no need to load it in advance.
[simgrid.git] / src / instr / instr_paje_types.cpp
index 6fd9444..8dd65cf 100644 (file)
@@ -57,7 +57,7 @@ void PJ_type_free(simgrid::instr::Type* type)
   xbt_free(type->id_);
   xbt_free(type->color_);
   xbt_dict_free(&type->children_);
-  xbt_free (type);
+  delete type;
   type = nullptr;
 }
 
@@ -115,7 +115,7 @@ simgrid::instr::Type* simgrid::instr::Type::containerNew(const char* name, simgr
     rootType = ret;
   } else {
     XBT_DEBUG("ContainerType %s(%s), child of %s(%s)", ret->name_, ret->id_, father->name_, father->id_);
-    DefineContainerEvent(ret);
+    LogContainerTypeDefinition(ret);
   }
   return ret;
 }