mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Fix a memory leak.
Entity/Edict leafs weren't being freed when the entity was freed.
This commit is contained in:
parent
7573c38122
commit
3d56084f59
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue