mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-22 01:11:42 +00:00
[ecs] Don't free the name string pointer
At least for now, anyway, I think the ecs should not own the entity name: doing so makes ownership of the string a nightmare.
This commit is contained in:
parent
585c47bc2d
commit
c9a8a340f0
1 changed files with 0 additions and 7 deletions
|
@ -34,12 +34,6 @@
|
|||
#define IMPLEMENT_ECS_Funcs
|
||||
#include "QF/ecs.h"
|
||||
|
||||
static void
|
||||
ecs_name_destroy (void *name, ecs_registry_t *reg)
|
||||
{
|
||||
free (name);
|
||||
}
|
||||
|
||||
static void
|
||||
ecs_hierarchy_create (void *hierarchy)
|
||||
{
|
||||
|
@ -56,7 +50,6 @@ static const component_t ecs_components[ecs_comp_count] = {
|
|||
[ecs_name] = {
|
||||
.size = sizeof (char *),
|
||||
.name = "name",
|
||||
.destroy = ecs_name_destroy,
|
||||
},
|
||||
[ecs_hierarchy] = {
|
||||
.size = sizeof (hierarchy_t),
|
||||
|
|
Loading…
Reference in a new issue