- Joined
- Mar 27, 2008
- Messages
- 8,035
If I have 2 variable location, loc1 and loc2 and I do it like this;
If a source is destroyed, then udg_loc1 has nothing to hold any longer, meaning that loc1 does not leak, right ?
But if I destroy loc1, will loc2 still leak ?
Because loc1 = loc2, any of them destroy, it will be affected, right ?
So, it is sufficient to only destroy one of them, is it ?
set udg_loc1 = udg_loc2
, if I want to remove leak, do I have to remove both variable value or just the source (which in this case, loc2 being the source) ?If a source is destroyed, then udg_loc1 has nothing to hold any longer, meaning that loc1 does not leak, right ?
But if I destroy loc1, will loc2 still leak ?
Because loc1 = loc2, any of them destroy, it will be affected, right ?
So, it is sufficient to only destroy one of them, is it ?