Is this a memory leak?

Just started using Construct 2? Post your questions here

Post » Fri Jul 10, 2015 4:37 pm

Hello;

Suppose I want to use an array of values in a function. I create the array, use it, then exit the function. Do I have to destroy the array before I exit?

Also, if I resize an array, I noticed it changes the UID of the object. Is that old UID still around, is this a memory leak?

thanks for your time.

yours
winkr7
B
34
S
8
G
3
Posts: 169
Reputation: 3,305

Post » Fri Jul 10, 2015 5:30 pm

It's the same if you created a sprite in a function. If you create another, it will exist till you destroy it. Also an object's uid should never change. I've resized many arrays and their uid remains the same.
B
92
S
32
G
110
Posts: 5,295
Reputation: 71,501


Return to Beginner's Questions

Who is online

Users browsing this forum: kainrazial, rbailey83 and 1 guest