diff --git a/nq/source/world.c b/nq/source/world.c index cdcbf2656..41279b4d1 100644 --- a/nq/source/world.c +++ b/nq/source/world.c @@ -348,6 +348,7 @@ link_t **sv_link_prev; void SV_UnlinkEdict (edict_t *ent) { + free_edict_leafs (&SVdata (ent)->leafs); if (!SVdata (ent)->area.prev) return; // not linked in anywhere RemoveLink (&SVdata (ent)->area);