- Joined
- Jul 23, 2009
- Messages
- 1,033
I realized one thing that puzzled me.
When I create a point, and let's say I set it to Point1, and then have a trigger to use that point for another trigger and I set Point2=Point1 - Now if I have a trigger in which I destroy Point2 I have realized that I also destroy Point1 since they are the same point but with different references. This means all the references I still wanted to have to Point1 are lost.
So the question is; If I want to keep using Point1 but no longer need the Point2 reference, can I just skip destroying Point2? Because it shouldn't leak as it doesn't create its' own point but instead it gets linked to Point1? Is this correct or am I mistaken?
When I create a point, and let's say I set it to Point1, and then have a trigger to use that point for another trigger and I set Point2=Point1 - Now if I have a trigger in which I destroy Point2 I have realized that I also destroy Point1 since they are the same point but with different references. This means all the references I still wanted to have to Point1 are lost.
So the question is; If I want to keep using Point1 but no longer need the Point2 reference, can I just skip destroying Point2? Because it shouldn't leak as it doesn't create its' own point but instead it gets linked to Point1? Is this correct or am I mistaken?