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
33
S
8
G
3
Posts: 169
Reputation: 3,280

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
91
S
31
G
103
Posts: 5,234
Reputation: 67,754


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests