- Joined
- Nov 17, 2010
- Messages
- 1,266
If I store an amount in a hashtable and constantly update that amount (in this case it is the damage done by my hero when he auto attacks) do I have to clear the old value stored in the hashtable before overwriting it to avoid leaks?
Basically I use a DDS and save the amount of damage he deals with an attack in the hashtable each time he attacks I update it to the new value so I can use that value for an ability. I’m just making sure it isn’t stacking up a bunch of leaks over time.
If it does leak how do I clear the old value before storing the new value?
Basically I use a DDS and save the amount of damage he deals with an attack in the hashtable each time he attacks I update it to the new value so I can use that value for an ability. I’m just making sure it isn’t stacking up a bunch of leaks over time.
If it does leak how do I clear the old value before storing the new value?