Replace strdup with mystrdup

This commit is contained in:
mniip 2018-05-10 10:32:37 +03:00
parent 8a8cbb81e4
commit a87acf56b7

View File

@ -2557,7 +2557,7 @@ int LuaScriptInterface::elements_allocate(lua_State * l)
newID = i; newID = i;
luacon_sim->elements[i] = Element(); luacon_sim->elements[i] = Element();
luacon_sim->elements[i].Enabled = true; luacon_sim->elements[i].Enabled = true;
luacon_sim->elements[i].Identifier = strdup(identifier.c_str()); luacon_sim->elements[i].Identifier = mystrdup(identifier.c_str());
break; break;
} }
} }
@ -2571,7 +2571,7 @@ int LuaScriptInterface::elements_allocate(lua_State * l)
newID = i; newID = i;
luacon_sim->elements[i] = Element(); luacon_sim->elements[i] = Element();
luacon_sim->elements[i].Enabled = true; luacon_sim->elements[i].Enabled = true;
luacon_sim->elements[i].Identifier = strdup(identifier.c_str()); luacon_sim->elements[i].Identifier = mystrdup(identifier.c_str());
break; break;
} }
} }