EOSERV Bug Tracker > Bug #475: NPCs are leaked when maps are unloaded

Bug #475: NPCs are leaked when maps are unloaded

NPCs are leaked when maps are unloaded
ID #475
Submitter Cirras
Product EOSERV
Severity Normal
Status OPEN, NEW
Submitted 10th Aug 2021
Updated 10th Aug 2021
Cirras Submitter 2 years, 41 weeks ago

NPCs on a given map are leaked when the map is unloaded.

They used to be deleted before the Map::npcs vector is cleared in Map::Unload, but this was removed in r511.

See: https://github.com/eoserv/eoserv/commit/32e5d49cf3bf51739a5ddf004c9a5cbe43851c42#diff-742a716324b97c7b673cb41a50625f5583e55761b4cd8bacaaadf2b2480d0050L689

Comments

Add Comment

Please don't post unless you have something relevant to the bug to say.
Do not comment to say "thanks" or "fix this please".

Please log in to add comments. EOSERV Bug Tracker > Bug #475: NPCs are leaked when maps are unloaded