- Joined
- Jul 30, 2007
- Messages
- 79
i am making a TD and i have just learned about memory leaks
i know in general group functions leak but my question is
i am spawning creeps and adding them to different group variables
these group variables are used for the pathing when entering regions
these same group variables are reused each round on the new creeps
now i am never destroying the groups so i feel like they are leaking
will using
Custom Script: call DestroyGroup(udg_UnitGroup)
for each of the group variables at the end of the round fix these leaks that i think i am creating
or is there some other way i should go about this
i know in general group functions leak but my question is
i am spawning creeps and adding them to different group variables
these group variables are used for the pathing when entering regions
these same group variables are reused each round on the new creeps
now i am never destroying the groups so i feel like they are leaking
will using
Custom Script: call DestroyGroup(udg_UnitGroup)
for each of the group variables at the end of the round fix these leaks that i think i am creating
or is there some other way i should go about this